mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Document that no dimension of a texture's size may be zero.
This commit is contained in:
1 parent
ae4a450103
commit
3e6629ceca
1 file changed
+3
-2
@@ -2522,8 +2522,9 @@ impl Extent3d {
|
||||
pub struct TextureDescriptor<L> {
|
||||
/// Debug label of the texture. This will show up in graphics debuggers for easy identification.
|
||||
pub label: L,
|
||||
/// Size of the texture. For a regular 1D/2D texture, the unused sizes will be 1. For 2DArray textures, Z is the
|
||||
/// number of 2D textures in that array.
|
||||
/// Size of the texture. All components must be greater than zero. For a
|
||||
/// regular 1D/2D texture, the unused sizes will be 1. For 2DArray textures,
|
||||
/// Z is the number of 2D textures in that array.
|
||||
pub size: Extent3d,
|
||||
/// Mip count of texture. For a texture with no extra mips, this must be 1.
|
||||
pub mip_level_count: u32,
|
||||
|
||||
Reference in new issue
Block a user