Web Inspector: REGRESSION (r238602): Elements: deleting the last child of a collapsed...
[WebKit-https.git] / LayoutTests / webgpu / vertex-buffer-triangle-strip.html
index 05d8856..5c4d0eb 100644 (file)
@@ -62,22 +62,22 @@ function createVertexBuffer(device) {
 
 function createInputStateDescriptor() {
     return {
-        indexFormat: WebGPUIndexFormat.UINT32,
+        indexFormat: "uint32",
         attributes: [{
             shaderLocation: 0,
             inputSlot: 0,
             offset: 0,
-            format: WebGPUVertexFormat.FLOAT_R32_G32_B32_A32
+            format: "float4"
         }, {
             shaderLocation: 1,
             inputSlot: 0,
             offset: 4 * 4,
-            format: WebGPUVertexFormat.FLOAT_R32
+            format: "float"
         }],
         inputs: [{
             inputSlot: 0,
             stride: 4 * 5,
-            stepMode: WebGPUInputStepMode.VERTEX
+            stepMode: "vertex"
         }]
     }
 }
@@ -90,12 +90,12 @@ async function test() {
     const shaderModule = device.createShaderModule({ code: shaderCode });
     const vertexBuffer = createVertexBuffer(device);
     const inputStateDescriptor = createInputStateDescriptor();
-    const pipeline = createBasicPipeline(shaderModule, device, null, inputStateDescriptor);
-    const commandBuffer = device.createCommandBuffer();
-    const passEncoder = beginBasicRenderPass(swapChain, commandBuffer);
-    const endCommandBuffer = encodeBasicCommands(passEncoder, pipeline, vertexBuffer);
+    const pipeline = createBasicPipeline(shaderModule, device, null, null, inputStateDescriptor);
+    const commandEncoder = device.createCommandEncoder();
+    const passEncoder = beginBasicRenderPass(swapChain, commandEncoder);
+    encodeBasicCommands(passEncoder, pipeline, vertexBuffer);
     const queue = device.getQueue();
-    queue.submit([endCommandBuffer]);
+    queue.submit([commandEncoder.finish()]);
     vertexBuffer.destroy();
 
     if (window.testRunner)