pub struct TextureUsage(pub u32);Expand description
how a texture is used
Tuple Fields§
§0: u32Implementations§
Source§impl TextureUsage
impl TextureUsage
pub const NONE: TextureUsage
pub const COPY_SRC: TextureUsage
pub const COPY_DST: TextureUsage
pub const SAMPLED: TextureUsage
pub const STORAGE: TextureUsage
pub const COLOR_TARGET: TextureUsage
pub const DEPTH_TARGET: TextureUsage
pub const fn contains(self, o: TextureUsage) -> bool
pub const fn intersects(self, o: TextureUsage) -> bool
Trait Implementations§
Source§impl BitOr for TextureUsage
impl BitOr for TextureUsage
Source§type Output = TextureUsage
type Output = TextureUsage
The resulting type after applying the
| operator.Source§fn bitor(self, o: TextureUsage) -> TextureUsage
fn bitor(self, o: TextureUsage) -> TextureUsage
Performs the
| operation. Read moreSource§impl Clone for TextureUsage
impl Clone for TextureUsage
impl Copy for TextureUsage
Source§impl Debug for TextureUsage
impl Debug for TextureUsage
impl Eq for TextureUsage
Source§impl PartialEq for TextureUsage
impl PartialEq for TextureUsage
impl StructuralPartialEq for TextureUsage
Auto Trait Implementations§
impl Forget for TextureUsage
impl Freeze for TextureUsage
impl RefUnwindSafe for TextureUsage
impl Send for TextureUsage
impl Sync for TextureUsage
impl Unpin for TextureUsage
impl UnsafeUnpin 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