diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-05-06 16:48:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 16:48:45 +0200 |
commit | f208e6a26f3c21c25dbfcfe29491a6f5660c999d (patch) | |
tree | 65dbbd45b2f36faab8ae585eb0d270356bcba33e /cli/tests/unit/webgpu_test.ts | |
parent | ce76f8c3a97529c86d49c39c6d9a250f978b5430 (diff) |
chore: update wgpu and realign to spec (#9760)
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r-- | cli/tests/unit/webgpu_test.ts | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts index 7b761ee3c..4fbbd5cde 100644 --- a/cli/tests/unit/webgpu_test.ts +++ b/cli/tests/unit/webgpu_test.ts @@ -49,18 +49,13 @@ unitTest({ storageBuffer.unmap(); - const bindGroupLayout = device.createBindGroupLayout({ - entries: [ - { - binding: 0, - visibility: 4, - buffer: { - type: "storage", - minBindingSize: 4, - }, - }, - ], + const computePipeline = device.createComputePipeline({ + compute: { + module: shaderModule, + entryPoint: "main", + }, }); + const bindGroupLayout = computePipeline.getBindGroupLayout(0); const bindGroup = device.createBindGroup({ layout: bindGroupLayout, @@ -74,18 +69,6 @@ unitTest({ ], }); - const pipelineLayout = device.createPipelineLayout({ - bindGroupLayouts: [bindGroupLayout], - }); - - const computePipeline = device.createComputePipeline({ - layout: pipelineLayout, - compute: { - module: shaderModule, - entryPoint: "main", - }, - }); - const encoder = device.createCommandEncoder(); const computePass = encoder.beginComputePass(); |