Enum wgpu::StorageTextureAccess[][src]

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::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES 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

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

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

impl<T> Downcast<T> for T

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, 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