pub struct TextureUsage(pub u32);Expand description
Bitset describing how a texture can be used. The graph doesn’t enforce these against declared reads / writes (executors do); the field exists so the aliaser can match transient resources to pool entries with the right usage flags.
Tuple Fields§
§0: u32Implementations§
Source§impl TextureUsage
impl TextureUsage
Sourcepub const SHADER_READ: Self
pub const SHADER_READ: Self
Sampled or otherwise read from a shader.
Sourcepub const RENDER_TARGET: Self
pub const RENDER_TARGET: Self
Bound as a colour render target.
Sourcepub const DEPTH_STENCIL: Self
pub const DEPTH_STENCIL: Self
Bound as a depth / stencil target.
Sourcepub const TRANSFER_SRC: Self
pub const TRANSFER_SRC: Self
Source of a copy.
Sourcepub const TRANSFER_DST: Self
pub const TRANSFER_DST: Self
Destination of a copy.
Trait Implementations§
Source§impl BitOr for TextureUsage
impl BitOr for TextureUsage
Source§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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.