[deno] Make QuerySet.destroy a no-op for now (#7758)

Implementing it is tracked by #6495. In the mean time it is okay for it
to be a no-op. `destroy` just recovers the resources earlier than garbage
collection might, doing nothing is not a leak.
This commit is contained in:
Andy Leiserson 2025-06-09 10:22:42 -07:00 committed by GitHub
parent d09c730c02
commit 1194833a74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -19,4 +19,5 @@ webgpu:api,operation,rendering,draw:*
webgpu:api,operation,uncapturederror:iff_uncaptured:*
//FAIL: webgpu:api,operation,uncapturederror:onuncapturederror_order_wrt_addEventListener
// There are also two unimplemented SKIPs in uncapturederror not enumerated here.
webgpu:api,validation,encoding,queries,general:occlusion_query,query_type:*
webgpu:shader,execution,flow_control,return:*

View File

@ -43,9 +43,10 @@ impl GPUQuerySet {
#[fast]
fn destroy(&self) -> Result<(), JsErrorBox> {
Err(JsErrorBox::generic(
"This operation is currently not supported",
))
// TODO(https://github.com/gfx-rs/wgpu/issues/6495): Destroy the query
// set. Until that is supported, it is okay to do nothing here, the
// query set will be garbage collected and dropped eventually.
Ok(())
}
#[getter]