#[repr(i32)]pub enum TextureLayout {
Unknown = 0,
RowMajor = 1,
UndefinedSwizzle64Kb = 2,
StandardSwizzle64Kb = 3,
}Expand description
Specifies texture layout options.
For more information: D3D12_TEXTURE_LAYOUT enumeration
Variants§
Unknown = 0
Indicates that the layout is unknown, and is likely adapter-dependent.
During creation, the driver chooses the most efficient layout based on other resource properties, especially resource size and flags.
Prefer this choice unless certain functionality is required from another texture layout.
RowMajor = 1
Indicates that data for the texture is stored in row-major order (sometimes called “pitch-linear order”).
UndefinedSwizzle64Kb = 2
Indicates that the layout within 64KB tiles and tail mip packing is up to the driver.
StandardSwizzle64Kb = 3
Indicates that a default texture uses the standardized swizzle pattern.
Implementations§
Source§impl TextureLayout
impl TextureLayout
Trait Implementations§
Source§impl Clone for TextureLayout
impl Clone for TextureLayout
Source§fn clone(&self) -> TextureLayout
fn clone(&self) -> TextureLayout
Returns a duplicate 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 moreSource§impl Debug for TextureLayout
impl Debug for TextureLayout
Source§impl Default for TextureLayout
impl Default for TextureLayout
Source§fn default() -> TextureLayout
fn default() -> TextureLayout
Returns the “default value” for a type. Read more
Source§impl From<D3D12_TEXTURE_LAYOUT> for TextureLayout
impl From<D3D12_TEXTURE_LAYOUT> for TextureLayout
Source§impl Hash for TextureLayout
impl Hash for TextureLayout
Source§impl PartialEq for TextureLayout
impl PartialEq for TextureLayout
impl Copy for TextureLayout
impl Eq for TextureLayout
impl StructuralPartialEq for TextureLayout
Auto Trait Implementations§
impl Freeze for TextureLayout
impl RefUnwindSafe for TextureLayout
impl Send for TextureLayout
impl Sync for TextureLayout
impl Unpin for TextureLayout
impl UnwindSafe for TextureLayout
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