Enum nannou::wgpu::BufferBindingType [−]
pub enum BufferBindingType { Uniform, Storage { read_only: bool, }, }
Expand description
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[];
};
Show fields
Fields of Storage
read_only: bool
If 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
impl Clone for BufferBindingType
pub fn clone(&self) -> BufferBindingType
pub fn clone(&self) -> BufferBindingType
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for BufferBindingType
impl Debug for BufferBindingType
impl Default for BufferBindingType
impl Default for BufferBindingType
pub fn default() -> BufferBindingType
pub fn default() -> BufferBindingType
Returns the “default value” for a type. Read more
impl Hash for BufferBindingType
impl Hash for BufferBindingType
impl PartialEq<BufferBindingType> for BufferBindingType
impl PartialEq<BufferBindingType> for BufferBindingType
pub fn eq(&self, other: &BufferBindingType) -> bool
pub fn eq(&self, other: &BufferBindingType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &BufferBindingType) -> bool
pub fn ne(&self, other: &BufferBindingType) -> bool
This method tests for !=
.
impl Copy for BufferBindingType
impl Eq for BufferBindingType
impl StructuralEq for BufferBindingType
impl StructuralPartialEq for BufferBindingType
Auto Trait Implementations
impl RefUnwindSafe for BufferBindingType
impl Send for BufferBindingType
impl Sync for BufferBindingType
impl Unpin for BufferBindingType
impl UnwindSafe for BufferBindingType
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V