Enum wgpu_types::TextureViewDimension
source · #[repr(C)]
pub enum TextureViewDimension {
D1,
D2,
D2Array,
Cube,
CubeArray,
D3,
}Expand description
Dimensions of a particular texture view.
Variants§
D1
A one dimensional texture. texture1D in glsl shaders.
D2
A two dimensional texture. texture2D in glsl shaders.
D2Array
A two dimensional array texture. texture2DArray in glsl shaders.
Cube
A cubemap texture. textureCube in glsl shaders.
CubeArray
A cubemap array texture. textureCubeArray in glsl shaders.
D3
A three dimensional texture. texture3D in glsl shaders.
Implementations§
source§impl TextureViewDimension
impl TextureViewDimension
sourcepub fn compatible_texture_dimension(self) -> TextureDimension
pub fn compatible_texture_dimension(self) -> TextureDimension
Get the texture dimension required fo this texture view dimension.
Trait Implementations§
source§impl Clone for TextureViewDimension
impl Clone for TextureViewDimension
source§fn clone(&self) -> TextureViewDimension
fn clone(&self) -> TextureViewDimension
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more