mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[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:
parent
d09c730c02
commit
1194833a74
@ -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:*
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user