Enum wgpu_types::BufferBindingType
source · 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§
Uniform
A buffer for uniform values.
Example GLSL syntax:
layout(std140, binding = 0)
uniform Globals {
vec2 aUniform;
vec2 anotherUniform;
};Storage
Fields
A storage buffer.
Example GLSL syntax:
layout (set=0, binding=0) buffer myStorageBuffer {
vec4 myElement[];
};Trait Implementations§
source§impl Clone for BufferBindingType
impl Clone for BufferBindingType
source§fn clone(&self) -> BufferBindingType
fn clone(&self) -> BufferBindingType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more