diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-24 13:29:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 13:29:42 +0200 |
commit | f4a9db350fbf00a6cb13a2c030b925cfd5218ed2 (patch) | |
tree | 3ab5cc4f4db7e4855df04fc792ee1e66e05a5d13 /ext/webgpu/queue.rs | |
parent | 50f69a6996ae4dcdfe53f15fc49949d3756c9787 (diff) |
chore(ext/webgpu): update wgpu to 0.10.0 (#11781)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'ext/webgpu/queue.rs')
-rw-r--r-- | ext/webgpu/queue.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/webgpu/queue.rs b/ext/webgpu/queue.rs index 6af1e61e3..da1f7a1ad 100644 --- a/ext/webgpu/queue.rs +++ b/ext/webgpu/queue.rs @@ -128,6 +128,12 @@ pub fn op_webgpu_write_texture( y: origin.y.unwrap_or(0), z: origin.z.unwrap_or(0), }), + aspect: match args.destination.aspect.as_str() { + "all" => wgpu_types::TextureAspect::All, + "stencil-only" => wgpu_types::TextureAspect::StencilOnly, + "depth-only" => wgpu_types::TextureAspect::DepthOnly, + _ => unreachable!(), + }, }; let data_layout = wgpu_types::ImageDataLayout { offset: args.data_layout.offset.unwrap_or(0), |