summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-03-10 10:15:57 +0100
committerGitHub <noreply@github.com>2021-03-10 10:15:57 +0100
commitdb96be7cdc3b9d8c8d5373e90ca6c2c57599529b (patch)
treef861291ddbba5c0be79f9c346e3226cb6151a22b
parentf800dfc3cbce9a701c00d7827338db5c1bf8899c (diff)
fix: getBindGroupLayout always illegal invocation (#9684)
-rw-r--r--op_crates/webgpu/01_webgpu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_crates/webgpu/01_webgpu.js b/op_crates/webgpu/01_webgpu.js
index 7a078619e..743f875e9 100644
--- a/op_crates/webgpu/01_webgpu.js
+++ b/op_crates/webgpu/01_webgpu.js
@@ -2315,7 +2315,7 @@
* @returns {GPUBindGroupLayout}
*/
getBindGroupLayout(index) {
- webidl.assertBranded(this, GPURenderPipeline);
+ webidl.assertBranded(this, GPUComputePipeline);
const prefix =
"Failed to execute 'getBindGroupLayout' on 'GPUComputePipeline'";
webidl.requiredArguments(arguments.length, 1, { prefix });