mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
Fix depth stencil attachment downcast for WebGPU (#3670)
This commit is contained in:
1 parent
f3bf0f782e
commit
ee175f909c
1 file changed
+1
-1
@@ -2098,7 +2098,7 @@ impl crate::context::Context for Context {
|
||||
|
||||
if let Some(dsa) = &desc.depth_stencil_attachment {
|
||||
let depth_stencil_attachment: &<Context as crate::Context>::TextureViewData =
|
||||
downcast_ref(&dsa.view.data);
|
||||
downcast_ref(dsa.view.data.as_ref());
|
||||
let mut mapped_depth_stencil_attachment =
|
||||
web_sys::GpuRenderPassDepthStencilAttachment::new(&depth_stencil_attachment.0);
|
||||
if let Some(ref ops) = dsa.depth_ops {
|
||||
|
||||
Reference in new issue
Block a user