Fix depth stencil attachment downcast for WebGPU (#3670)

This commit is contained in:
Josh Groves
2023-04-12 14:03:50 -02:30
committed by GitHub
parent f3bf0f782e
commit ee175f909c

View File

@@ -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 {