4 <meta charset=
"utf-8" />
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css" />
11 SpecialPowers
.getBoolPref("dom.webgpu.enabled"),
12 "Pref should be enabled."
15 const set_bind_group_null
= async
function () {
16 const adapter
= await navigator
.gpu
.requestAdapter();
17 ok(adapter
!== undefined, "adapter !== undefined");
18 const device
= await adapter
.requestDevice();
19 ok(device
!== undefined, "device !== undefined");
21 const bundleEncoder
= device
.createRenderBundleEncoder({
22 colorFormats
: ["rgba8unorm"],
24 bundleEncoder
.setBindGroup(1, null);
25 ok(true, "Was able to set a bindGroup to null.");
28 SimpleTest
.waitForExplicitFinish();
31 .catch(e
=> ok(false, `Unhandled exception ${e}`))
32 .finally(() => SimpleTest
.finish());