pub enum BindGroupError {
BindingsNumMismatch {
actual: usize,
expected: usize,
},
MissingBindingDeclaration(u32),
WrongBindingType {
binding: u32,
actual: BindingType,
expected: &'static str,
},
WrongSamplerComparison,
}Variants§
BindingsNumMismatch
Number of bindings in bind group descriptor does not match the number of bindings defined in the bind group layout.
MissingBindingDeclaration(u32)
Unable to find a corresponding declaration for the given binding,
WrongBindingType
The given binding has a different type than the one in the layout.
WrongSamplerComparison
The given sampler is/is not a comparison sampler, while the layout type indicates otherwise.
Trait Implementations§
Source§impl Clone for BindGroupError
impl Clone for BindGroupError
Source§fn clone(&self) -> BindGroupError
fn clone(&self) -> BindGroupError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BindGroupError
impl RefUnwindSafe for BindGroupError
impl Send for BindGroupError
impl Sync for BindGroupError
impl Unpin for BindGroupError
impl UnwindSafe for BindGroupError
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