Enum wgsl_to_wgpu::CreateModuleError
source · pub enum CreateModuleError {
NonConsecutiveBindGroups,
DuplicateBinding {
binding: u32,
},
}
Expand description
Errors while generating Rust source for a WGSl shader module.
Variants§
NonConsecutiveBindGroups
Bind group sets must be consecutive and start from 0.
See bind_group_layouts
for
PipelineLayoutDescriptor.
DuplicateBinding
Each binding resource must be associated with exactly one binding index.
Trait Implementations§
source§impl Debug for CreateModuleError
impl Debug for CreateModuleError
source§impl Display for CreateModuleError
impl Display for CreateModuleError
source§impl Error for CreateModuleError
impl Error for CreateModuleError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for CreateModuleError
impl PartialEq for CreateModuleError
source§fn eq(&self, other: &CreateModuleError) -> bool
fn eq(&self, other: &CreateModuleError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CreateModuleError
impl StructuralPartialEq for CreateModuleError
Auto Trait Implementations§
impl Freeze for CreateModuleError
impl RefUnwindSafe for CreateModuleError
impl Send for CreateModuleError
impl Sync for CreateModuleError
impl Unpin for CreateModuleError
impl UnwindSafe for CreateModuleError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.