[][src]Enum wgpu::StorageTextureAccess

pub enum StorageTextureAccess {
    ReadOnly,
    WriteOnly,
    ReadWrite,
}

Specific type of a sample in a texture binding.

WebGPU spec: https://gpuweb.github.io/gpuweb/#enumdef-gpustoragetextureaccess

Variants

ReadOnly

The texture can only be read in the shader and it must be annotated with readonly.

Example GLSL syntax:

layout(set=0, binding=0, r32f) readonly uniform image2D myStorageImage;
WriteOnly

The texture can only be written in the shader and it must be annotated with writeonly.

Example GLSL syntax:

layout(set=0, binding=0, r32f) writeonly uniform image2D myStorageImage;
ReadWrite

The texture can be both read and written in the shader. [Features::STORAGE_TEXTURE_ACCESS_READ_WRITE] must be enabled to use this access mode.

Example GLSL syntax:

layout(set=0, binding=0, r32f) uniform image2D myStorageImage;

Trait Implementations

impl Clone for StorageTextureAccess[src]

impl Copy for StorageTextureAccess[src]

impl Debug for StorageTextureAccess[src]

impl<'de> Deserialize<'de> for StorageTextureAccess[src]

impl Eq for StorageTextureAccess[src]

impl Hash for StorageTextureAccess[src]

impl PartialEq<StorageTextureAccess> for StorageTextureAccess[src]

impl Serialize for StorageTextureAccess[src]

impl StructuralEq for StorageTextureAccess[src]

impl StructuralPartialEq for StorageTextureAccess[src]

Auto Trait Implementations

impl RefUnwindSafe for StorageTextureAccess[src]

impl Send for StorageTextureAccess[src]

impl Sync for StorageTextureAccess[src]

impl Unpin for StorageTextureAccess[src]

impl UnwindSafe for StorageTextureAccess[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T[src]