pub enum BufferAccess {
ReadOnly,
ReadWrite,
}
Expand description
Specifies the storage access of the buffer in the kernel.
Variants§
ReadOnly
The buffer can only be read.
Corresponds to a var<storage, read>
in wgsl.
ReadWrite
The buffer may be read and/or written.
Corresponds to a var<storage, read_write>
in wgsl.
Trait Implementations§
Source§impl Clone for BufferAccess
impl Clone for BufferAccess
Source§fn clone(&self) -> BufferAccess
fn clone(&self) -> BufferAccess
Returns a copy 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 BufferAccess
impl Debug for BufferAccess
Source§impl PartialEq for BufferAccess
impl PartialEq for BufferAccess
impl Copy for BufferAccess
impl Eq for BufferAccess
impl StructuralPartialEq for BufferAccess
Auto Trait Implementations§
impl Freeze for BufferAccess
impl RefUnwindSafe for BufferAccess
impl Send for BufferAccess
impl Sync for BufferAccess
impl Unpin for BufferAccess
impl UnwindSafe for BufferAccess
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.