1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix: getBindGroupLayout always illegal invocation (#9684)

This commit is contained in:
Luca Casonato 2021-03-10 10:15:57 +01:00 committed by GitHub
parent f800dfc3cb
commit db96be7cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 });