Replace u32 with NonZeroU32 in TextureView

This commit is contained in:
Kunal Mohan committed 2020-08-05 22:54:41 +05:30
1 parent 7087e3141c
commit e110672a53
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -1202,11 +1202,11 @@ impl crate::Context for Context {
mapped_desc.aspect(map_texture_aspect(d.aspect));
mapped_desc.base_array_layer(d.base_array_layer);
if let Some(count) = d.array_layer_count {
mapped_desc.array_layer_count(count);
mapped_desc.array_layer_count(count.get());
}
mapped_desc.base_mip_level(d.base_mip_level);
if let Some(count) = d.level_count {
mapped_desc.mip_level_count(count);
mapped_desc.mip_level_count(count.get());
}
// TODO: label
texture.0.create_view_with_descriptor(&mapped_desc)