[−][src]Struct web_glitz::pipeline::resources::BindGroupLayoutBuilder
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]
self,
descriptor: ResourceSlotDescriptor
) -> Result<Self, InvalidResourceSlotSequence>
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
impl RefUnwindSafe for BindGroupLayoutBuilder
impl Send for BindGroupLayoutBuilder
impl Sync for BindGroupLayoutBuilder
impl Unpin for BindGroupLayoutBuilder
impl UnwindSafe for BindGroupLayoutBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,