mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
Replace u32 with NonZeroU32 in TextureView
This commit is contained in:
1 parent
7087e3141c
commit
e110672a53
4 files changed
+8
-8
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user