pub enum CreateModuleError {
NonConsecutiveBindGroups,
DuplicateBinding {
binding: u32,
},
RustModuleBuilderError(RustModuleBuilderError),
}
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.
RustModuleBuilderError(RustModuleBuilderError)
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
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<CreateModuleError> for WgslBindgenError
impl From<CreateModuleError> for WgslBindgenError
Source§fn from(source: CreateModuleError) -> Self
fn from(source: CreateModuleError) -> Self
Converts to this type from the input type.
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