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

pub struct TypedResourceBindingsLayoutDescriptor { /* fields omitted */ }

A typed description of the resource binding slots used by a pipeline.

This type includes description of the exact resource type used for each resource slot, which may be checked against the resource types defined by the pipeline's shader stages.

See also ResourceBindingsLayoutDescriptor a descriptor that only includes the minimum of information necessary to initialize a pipeline.

Implementations

impl TypedResourceBindingsLayoutDescriptor[src]

pub const unsafe fn new(
    bind_groups: &'static [TypedBindGroupLayoutDescriptor]
) -> Self
[src]

Creates a new [TypedBindGroupLayoutDescriptor] contains the specified bind_groups.

Unsafe

The bind groups must be ordered by their bind group index (see [TypedBindGroupLayoutDescriptor::bind_group_index]) in ascending order and there must not be multiple bind groups that use the same bind group index.

pub const fn empty() -> Self[src]

Creates a new empty TypedResourceBindingsLayoutDescriptor without any bind groups.

pub fn bind_groups(&self) -> &[TypedBindGroupLayoutDescriptor][src]

The bind groups specified for this layout.

Trait Implementations

impl Clone for TypedResourceBindingsLayoutDescriptor[src]

impl Debug for TypedResourceBindingsLayoutDescriptor[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.