Enum wgpu::core::validation::BindingLayoutSource
source · pub enum BindingLayoutSource<'a> {
Derived(ArrayVec<EntryMap, wgpu_core::::validation::BindingLayoutSource::Derived::0::{constant#0}>),
Provided(ArrayVec<&'a EntryMap, wgpu_core::::validation::BindingLayoutSource::Provided::0::{constant#0}>),
}
Variants§
Derived(ArrayVec<EntryMap, wgpu_core::::validation::BindingLayoutSource::Derived::0::{constant#0}>)
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(ArrayVec<&'a EntryMap, wgpu_core::::validation::BindingLayoutSource::Provided::0::{constant#0}>)
The binding layout is provided by the user in BGLs.
This will be validated against the shader’s interfaces.
Implementations§
source§impl<'a> BindingLayoutSource<'a>
impl<'a> BindingLayoutSource<'a>
pub fn new_derived(limits: &Limits) -> BindingLayoutSource<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BindingLayoutSource<'a>
impl<'a> Send for BindingLayoutSource<'a>
impl<'a> Sync for BindingLayoutSource<'a>
impl<'a> Unpin for BindingLayoutSource<'a>
impl<'a> UnwindSafe for BindingLayoutSource<'a>
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