diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index 8a8137bce5..54e6743a64 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -273,6 +273,9 @@ impl Adapter { if texture_format_properties.contains(hal::format::ImageFeature::COLOR_ATTACHMENT) { allowed_usages |= wgt::TextureUsage::RENDER_ATTACHMENT; } + if texture_format_properties.contains(hal::format::ImageFeature::DEPTH_STENCIL_ATTACHMENT) { + allowed_usages |= wgt::TextureUsage::RENDER_ATTACHMENT; + } if texture_format_properties.contains(hal::format::ImageFeature::BLIT_SRC) { allowed_usages |= wgt::TextureUsage::COPY_SRC; }