pub enum TextureShape {
Array {
layers: u32,
},
Cube {
cubes: u32,
},
Volume {
depth: u32,
},
}Expand description
What the layers of a TextureLayers are.
Variants§
Array
layers images of the same size; every level has all of them.
Cube
cubes cube maps (1 for a plain one), six faces each in Direct3D’s order: +X, -X, +Y, -Y, +Z, -Z.
Volume
A volume depth texels deep; each level halves the depth as it halves the width and height (down to 1).
Implementations§
Source§impl TextureShape
impl TextureShape
Sourcepub fn dimension(self) -> (TextureDim, bool)
pub fn dimension(self) -> (TextureDim, bool)
The dimension a shader resource reads this shape as, and whether the resource is arrayed: an array is an arrayed 2D texture, one cube a cube and several an arrayed cube, a volume a 3D texture.
Trait Implementations§
Source§impl Clone for TextureShape
impl Clone for TextureShape
impl Copy for TextureShape
Source§impl Debug for TextureShape
impl Debug for TextureShape
impl Eq for TextureShape
Source§impl Hash for TextureShape
impl Hash for TextureShape
Source§impl PartialEq for TextureShape
impl PartialEq for TextureShape
Source§impl Serialize for TextureShape
impl Serialize for TextureShape
impl StructuralPartialEq for TextureShape
Auto Trait Implementations§
impl Forget for TextureShape
impl Freeze for TextureShape
impl RefUnwindSafe for TextureShape
impl Send for TextureShape
impl Sync for TextureShape
impl Unpin for TextureShape
impl UnsafeUnpin for TextureShape
impl UnwindSafe for TextureShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.