pub enum BindingLayoutSource {
Derived(Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>),
Provided(Arc<PipelineLayout>),
}Variants§
Derived(Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>)
The binding layout is derived from the pipeline layout.
This will be filled in by the shader binding validation, as it iterates the shader’s interfaces.
Provided(Arc<PipelineLayout>)
The binding layout is provided by the user in BGLs.
This will be validated against the shader’s interfaces.
Implementations§
Source§impl BindingLayoutSource
impl BindingLayoutSource
pub fn new_derived(limits: &Limits) -> Self
Auto Trait Implementations§
impl Freeze for BindingLayoutSource
impl !RefUnwindSafe for BindingLayoutSource
impl Send for BindingLayoutSource
impl Sync for BindingLayoutSource
impl Unpin for BindingLayoutSource
impl !UnwindSafe for BindingLayoutSource
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
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