Enum wgpu_types::BufferBindingType [−][src]
Specific type of a buffer binding.
WebGPU spec: https://gpuweb.github.io/gpuweb/#enumdef-gpubufferbindingtype
Variants
A buffer for uniform values.
Example GLSL syntax:
layout(std140, binding = 0)
uniform Globals {
vec2 aUniform;
vec2 anotherUniform;
};
A storage buffer.
Example GLSL syntax:
layout (set=0, binding=0) buffer myStorageBuffer {
vec4 myElement[];
};
Fields of Storage
read_only: boolIf true, the buffer can only be read in the shader,
and it must be annotated with readonly.
Example GLSL syntax:
layout (set=0, binding=0) readonly buffer myStorageBuffer {
vec4 myElement[];
};
Trait Implementations
impl Clone for BufferBindingType[src]
fn clone(&self) -> BufferBindingType[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for BufferBindingType[src]
impl Debug for BufferBindingType[src]
impl Default for BufferBindingType[src]
impl Eq for BufferBindingType[src]
impl Hash for BufferBindingType[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<BufferBindingType> for BufferBindingType[src]
fn eq(&self, other: &BufferBindingType) -> bool[src]
fn ne(&self, other: &BufferBindingType) -> bool[src]
impl StructuralEq for BufferBindingType[src]
impl StructuralPartialEq for BufferBindingType[src]
Auto Trait Implementations
impl RefUnwindSafe for BufferBindingType[src]
impl Send for BufferBindingType[src]
impl Sync for BufferBindingType[src]
impl Unpin for BufferBindingType[src]
impl UnwindSafe for BufferBindingType[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>,