pub enum BufferUsage {
ReadOnly,
WriteOnly,
ReadWrite,
}
Expand description
Defines the usage of the buffer in the wgsl shader
Variants§
Trait Implementations§
Source§impl BitOr<BufferUsages> for BufferUsage
impl BitOr<BufferUsages> for BufferUsage
Source§type Output = BufferUsages
type Output = BufferUsages
The resulting type after applying the
|
operator.Source§impl Clone for BufferUsage
impl Clone for BufferUsage
Source§fn clone(&self) -> BufferUsage
fn clone(&self) -> BufferUsage
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 moreAuto Trait Implementations§
impl Freeze for BufferUsage
impl RefUnwindSafe for BufferUsage
impl Send for BufferUsage
impl Sync for BufferUsage
impl Unpin for BufferUsage
impl UnwindSafe for BufferUsage
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