mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore: update wgpu (#23684)
This commit is contained in:
parent
b2628e4a06
commit
cd12d41627
25 changed files with 820 additions and 505 deletions
|
@ -39,8 +39,7 @@ impl Resource for WebGpuTextureView {
|
|||
}
|
||||
|
||||
fn close(self: Rc<Self>) {
|
||||
let instance = &self.0;
|
||||
gfx_select!(self.1 => instance.texture_view_drop(self.1, true)).unwrap();
|
||||
gfx_select!(self.1 => self.0.texture_view_drop(self.1, true)).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,7 +83,7 @@ pub fn op_webgpu_create_texture(
|
|||
let (val, maybe_err) = gfx_select!(device => instance.device_create_texture(
|
||||
device,
|
||||
&descriptor,
|
||||
()
|
||||
None
|
||||
));
|
||||
|
||||
let rid = state.resource_table.add(WebGpuTexture {
|
||||
|
@ -129,6 +128,6 @@ pub fn op_webgpu_create_texture_view(
|
|||
gfx_put!(texture => instance.texture_create_view(
|
||||
texture,
|
||||
&descriptor,
|
||||
()
|
||||
None
|
||||
) => state, WebGpuTextureView)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue