pub struct LitBindGroupLayouts {
pub global: BindGroupLayout,
pub material: Option<BindGroupLayout>,
pub mesh: Option<BindGroupLayout>,
}Expand description
The bind-group layouts a SpecializedLitPipeline variant declares.
Built by LitVariant::bind_group_layouts from the same variant a
pipeline is built from, so the two agree: the global group always exists and
the material group only for a variant that samples a base-color texture. The
mesh group is always None — the built-in variants bind nothing there — but
stays in the structure because the index is a general extension point.
Fields§
§global: BindGroupLayoutLayout of the global bind group (index 0).
material: Option<BindGroupLayout>Layout of the material bind group (index 1), for a variant that samples a base-color texture.
mesh: Option<BindGroupLayout>Layout of the mesh bind group (index 2).
Always None for the built-in variants: every input they read is in the
global group or on the instance stream.
Trait Implementations§
Source§impl Clone for LitBindGroupLayouts
impl Clone for LitBindGroupLayouts
Auto Trait Implementations§
impl !RefUnwindSafe for LitBindGroupLayouts
impl !UnwindSafe for LitBindGroupLayouts
impl Forget for LitBindGroupLayouts
impl Freeze for LitBindGroupLayouts
impl Send for LitBindGroupLayouts
impl Sync for LitBindGroupLayouts
impl Unpin for LitBindGroupLayouts
impl UnsafeUnpin for LitBindGroupLayouts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more