pub struct StorageTextureBindingLayout {
pub access: StorageTextureAccess,
pub format: TextureFormat,
pub view_dimension: TextureViewDimension,
}Expand description
A storage texture.
Example WGSL syntax:
ⓘ
@group(0) @binding(0)
var my_storage_image: texture_storage_2d<r32float, write>;Example GLSL syntax:
layout(set=0, binding=0, r32f) writeonly uniform image2D myStorageImage;Note that the texture format must be specified in the shader, along with the access mode. For WGSL, the format must be one of the enumerants in the list of storage texel formats.
Corresponds to WebGPU GPUStorageTextureBindingLayout.
Fields§
§access: StorageTextureAccessAllowed access to this texture.
format: TextureFormatFormat of the texture.
view_dimension: TextureViewDimensionDimension of the texture view that is going to be sampled.
Trait Implementations§
Source§impl Clone for StorageTextureBindingLayout
impl Clone for StorageTextureBindingLayout
impl Copy for StorageTextureBindingLayout
Source§impl Debug for StorageTextureBindingLayout
impl Debug for StorageTextureBindingLayout
Source§impl<'de> Deserialize<'de> for StorageTextureBindingLayout
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StorageTextureBindingLayout
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StorageTextureBindingLayout
Source§impl Hash for StorageTextureBindingLayout
impl Hash for StorageTextureBindingLayout
Source§impl Serialize for StorageTextureBindingLayout
Available on crate feature serde only.
impl Serialize for StorageTextureBindingLayout
Available on crate feature
serde only.impl StructuralPartialEq for StorageTextureBindingLayout
Auto Trait Implementations§
impl Forget for StorageTextureBindingLayout
impl Freeze for StorageTextureBindingLayout
impl Move for StorageTextureBindingLayout
impl RefUnwindSafe for StorageTextureBindingLayout
impl Send for StorageTextureBindingLayout
impl Sync for StorageTextureBindingLayout
impl Unpin for StorageTextureBindingLayout
impl UnsafeUnpin for StorageTextureBindingLayout
impl UnwindSafe for StorageTextureBindingLayout
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.