mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix depth stencil attachment downcast for WebGPU (#3670)
This commit is contained in:
@@ -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