Enum wgpu::BufferBindingType[][src]

pub enum BufferBindingType {
    Storage {
        read_only: bool,

Specific type of a buffer binding.

WebGPU spec: https://gpuweb.github.io/gpuweb/#enumdef-gpubufferbindingtype



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[src]

impl Copy for BufferBindingType[src]

impl Debug for BufferBindingType[src]

impl Default for BufferBindingType[src]

impl<'de> Deserialize<'de> for BufferBindingType[src]

impl Eq for BufferBindingType[src]

impl Hash for BufferBindingType[src]

impl PartialEq<BufferBindingType> for BufferBindingType[src]

impl Serialize for BufferBindingType[src]

impl StructuralEq for BufferBindingType[src]

impl StructuralPartialEq for BufferBindingType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> CallHasher for T where
    T: Hash

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T