map depth/stencil feature to RENDER_ATTACHMENT

This commit is contained in:
Andreas Reich committed 2020-12-30 12:23:13 +01:00
1 parent c17b2dc6a0
commit 757d12aca3
1 file changed
+3
+3
View File
@@ -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;
}