Add DEPTH24UNORM_STENCIL8 feature (#2689)

This commit is contained in:
Jinlei Li authored and GitHub committed 2022-05-30 15:29:12 -04:00
1 parent fd954a2bd6
commit 8063edc648
16 files changed
+98 -31

No files matched your search

+2 -1
View File
@@ -313,7 +313,8 @@ pub(crate) fn validate_texture_copy_range(
wgt::TextureFormat::Depth32Float
| wgt::TextureFormat::Depth32FloatStencil8
| wgt::TextureFormat::Depth24Plus
| wgt::TextureFormat::Depth24PlusStencil8 => {
| wgt::TextureFormat::Depth24PlusStencil8
| wgt::TextureFormat::Depth24UnormStencil8 => {
if *copy_size != extent {
return Err(TransferError::InvalidDepthTextureExtent);
}