pub enum CreateBindGroupError {
Show 23 variants
Device(DeviceError),
InvalidLayout,
InvalidBuffer(BufferId),
InvalidTextureView(TextureViewId),
InvalidSampler(SamplerId),
BindingArrayLengthMismatch {
actual: usize,
expected: usize,
},
BindingRangeTooLarge {
buffer: BufferId,
range: Range<BufferAddress>,
size: u64,
},
BindingSizeTooSmall {
buffer: BufferId,
actual: u64,
min: u64,
},
BindingZeroSize(BufferId),
BindingsNumMismatch {
actual: usize,
expected: usize,
},
DuplicateBinding(u32),
MissingBindingDeclaration(u32),
MissingBufferUsage(MissingBufferUsageError),
MissingTextureUsage(MissingTextureUsageError),
MissingFeatures(Features),
SingleBindingExpected,
SwapChainImage,
UnalignedBufferOffset(BufferAddress),
UniformBufferRangeTooLarge,
WrongBindingType {
binding: u32,
actual: BindingType,
expected: &'static str,
},
WrongSamplerComparison,
DepthStencilAspect,
StorageReadWriteNotSupported(TextureFormat),
}Variants§
Device(DeviceError)
InvalidLayout
InvalidBuffer(BufferId)
InvalidTextureView(TextureViewId)
InvalidSampler(SamplerId)
BindingArrayLengthMismatch
BindingRangeTooLarge
BindingSizeTooSmall
BindingZeroSize(BufferId)
BindingsNumMismatch
DuplicateBinding(u32)
MissingBindingDeclaration(u32)
MissingBufferUsage(MissingBufferUsageError)
MissingTextureUsage(MissingTextureUsageError)
MissingFeatures(Features)
SingleBindingExpected
SwapChainImage
UnalignedBufferOffset(BufferAddress)
UniformBufferRangeTooLarge
WrongBindingType
WrongSamplerComparison
DepthStencilAspect
StorageReadWriteNotSupported(TextureFormat)
Trait Implementations§
source§impl Clone for CreateBindGroupError
impl Clone for CreateBindGroupError
source§fn clone(&self) -> CreateBindGroupError
fn clone(&self) -> CreateBindGroupError
Returns a copy 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 moresource§impl Debug for CreateBindGroupError
impl Debug for CreateBindGroupError
source§impl Display for CreateBindGroupError
impl Display for CreateBindGroupError
source§impl Error for CreateBindGroupError
impl Error for CreateBindGroupError
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 From<DeviceError> for CreateBindGroupError
impl From<DeviceError> for CreateBindGroupError
source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.