#[repr(transparent)]pub struct TextureUsage(pub UInteger);Expand description
Texture usage flags (bitflags).
C++ equivalent: MTL::TextureUsage
Tuple Fields§
§0: UIntegerImplementations§
Source§impl TextureUsage
impl TextureUsage
pub const UNKNOWN: Self
pub const SHADER_READ: Self
pub const SHADER_WRITE: Self
pub const RENDER_TARGET: Self
pub const PIXEL_FORMAT_VIEW: Self
pub const SHADER_ATOMIC: Self
Trait Implementations§
Source§impl BitAnd for TextureUsage
impl BitAnd for TextureUsage
Source§impl BitOr for TextureUsage
impl BitOr for TextureUsage
Source§impl BitOrAssign for TextureUsage
impl BitOrAssign for TextureUsage
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for TextureUsage
impl Clone for TextureUsage
Source§fn clone(&self) -> TextureUsage
fn clone(&self) -> TextureUsage
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 TextureUsage
impl Debug for TextureUsage
Source§impl Default for TextureUsage
impl Default for TextureUsage
Source§fn default() -> TextureUsage
fn default() -> TextureUsage
Returns the “default value” for a type. Read more
Source§impl Hash for TextureUsage
impl Hash for TextureUsage
Source§impl PartialEq for TextureUsage
impl PartialEq for TextureUsage
impl Copy for TextureUsage
impl Eq for TextureUsage
impl StructuralPartialEq for TextureUsage
Auto Trait Implementations§
impl Freeze for TextureUsage
impl RefUnwindSafe for TextureUsage
impl Send for TextureUsage
impl Sync for TextureUsage
impl Unpin for TextureUsage
impl UnwindSafe for TextureUsage
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