mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
map depth/stencil feature to RENDER_ATTACHMENT
This commit is contained in:
1 parent
c17b2dc6a0
commit
757d12aca3
1 file changed
+3
@@ -273,6 +273,9 @@ impl<B: GfxBackend> Adapter<B> {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user