pub enum StorageAccess {
WriteOnly,
ReadOnly,
ReadWrite,
}Expand description
NodeAccess for a StorageTextureNode — the access of its
texture_storage_* declaration.
StorageTextureNode’s default is WRITE_ONLY; WGSLNodeBuilder .getStorageAccess() forces READ_ONLY outside the compute stage, which the
builder applies when it declares the binding.
Variants§
WriteOnly
texture_storage_2d<format, write> — StorageTextureNode’s default.
ReadOnly
texture_storage_2d<format, read> — forced outside the compute stage.
ReadWrite
texture_storage_2d<format, read_write>.
Trait Implementations§
Source§impl Clone for StorageAccess
impl Clone for StorageAccess
impl Copy for StorageAccess
Source§impl Debug for StorageAccess
impl Debug for StorageAccess
Source§impl Default for StorageAccess
impl Default for StorageAccess
impl Eq for StorageAccess
Source§impl Hash for StorageAccess
impl Hash for StorageAccess
Source§impl PartialEq for StorageAccess
impl PartialEq for StorageAccess
impl StructuralPartialEq for StorageAccess
Auto Trait Implementations§
impl Freeze for StorageAccess
impl RefUnwindSafe for StorageAccess
impl Send for StorageAccess
impl Sync for StorageAccess
impl Unpin for StorageAccess
impl UnsafeUnpin for StorageAccess
impl UnwindSafe for StorageAccess
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.