mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
map depth/stencil feature to RENDER_ATTACHMENT
This commit is contained in:
@@ -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