Enum wgpu_types::StorageTextureAccess [−][src]
Specific type of a sample in a texture binding.
WebGPU spec: https://gpuweb.github.io/gpuweb/#enumdef-gpustoragetextureaccess
Variants
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;
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;
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]
fn clone(&self) -> StorageTextureAccess
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StorageTextureAccess
[src]
impl Debug for StorageTextureAccess
[src]
impl Eq for StorageTextureAccess
[src]
impl Hash for StorageTextureAccess
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<StorageTextureAccess> for StorageTextureAccess
[src]
fn eq(&self, other: &StorageTextureAccess) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,