diff options
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), |