pub struct BindGroupDescriptor<'a, A: Api> {
    pub label: Label<'a>,
    pub layout: &'a A::BindGroupLayout,
    pub buffers: &'a [BufferBinding<'a, A>],
    pub samplers: &'a [&'a A::Sampler],
    pub textures: &'a [TextureBinding<'a, A>],
    pub entries: &'a [BindGroupEntry],
}
Expand description

BindGroup descriptor.

Valid usage: . - entries has to be sorted by ascending BindGroupEntry::binding . - entries has to have the same set of BindGroupEntry::binding as layout . - each entry has to be compatible with the layout . - each entry’s BindGroupEntry::resource_index is within range of the corresponding resource array, selected by the relevant BindGroupLayoutEntry.

Fields

label: Label<'a>layout: &'a A::BindGroupLayoutbuffers: &'a [BufferBinding<'a, A>]samplers: &'a [&'a A::Sampler]textures: &'a [TextureBinding<'a, A>]entries: &'a [BindGroupEntry]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.