1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(ext/webgpu): Create GPUQuerySet converter before usage (#26883)

Converter for `GPUComputePassTimestampWrites` uses converter for
`GPUQuerySet` before it is defined making it impossible to use. This PR
simply reorders converter creation to resolve this issue. Logging the
`GPUQuerySet` still fails (as mentioned in #26769) but it is now usable
inside pass descriptors and works when used.
This commit is contained in:
reczkok 2024-11-17 04:14:36 +01:00 committed by GitHub
parent 56df61677e
commit 80098bfeab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6982,6 +6982,12 @@ webidl.converters.GPUComputePassEncoder = webidl.createInterfaceConverter(
GPUComputePassEncoder.prototype, GPUComputePassEncoder.prototype,
); );
// INTERFACE: GPUQuerySet
webidl.converters.GPUQuerySet = webidl.createInterfaceConverter(
"GPUQuerySet",
GPUQuerySet.prototype,
);
// DICTIONARY: GPUComputePassTimestampWrites // DICTIONARY: GPUComputePassTimestampWrites
webidl.converters["GPUComputePassTimestampWrites"] = webidl webidl.converters["GPUComputePassTimestampWrites"] = webidl
.createDictionaryConverter( .createDictionaryConverter(
@ -7154,12 +7160,6 @@ webidl.converters["GPURenderPassDepthStencilAttachment"] = webidl
dictMembersGPURenderPassDepthStencilAttachment, dictMembersGPURenderPassDepthStencilAttachment,
); );
// INTERFACE: GPUQuerySet
webidl.converters.GPUQuerySet = webidl.createInterfaceConverter(
"GPUQuerySet",
GPUQuerySet.prototype,
);
// DICTIONARY: GPURenderPassTimestampWrites // DICTIONARY: GPURenderPassTimestampWrites
webidl.converters["GPURenderPassTimestampWrites"] = webidl webidl.converters["GPURenderPassTimestampWrites"] = webidl
.createDictionaryConverter( .createDictionaryConverter(