[][src]Struct web_glitz::pipeline::resources::BindGroupLayoutBuilder

pub struct BindGroupLayoutBuilder { /* fields omitted */ }

Returned from [ResourceBindingsLayoutDescriptorBuilder::add_bind_group], accumulates the resource slot descriptors for a bind group layout description.

Implementations

impl BindGroupLayoutBuilder[src]

pub fn add_resource_slot(
    self,
    descriptor: ResourceSlotDescriptor
) -> Result<Self, InvalidResourceSlotSequence>
[src]

Adds a resource slot descriptor to the bind group layout.

The slot index declared by the descriptor must be greater than the previous resource slot added to this builder (if any), otherwise an InvalidResourceSlotSequence error is returned: all resource slots must be added to the builder in ascending order of slot index and no 2 resource slots must declare the same slot index.

pub fn finish(self) -> ResourceBindingsLayoutBuilder[src]

Finishes the layout for this bind group and returns the ResourceBindingsLayoutBuilder.

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.