#[non_exhaustive]pub enum CreateBindGroupError {
Show 33 variants
Device(DeviceError),
DestroyedResource(DestroyedResourceError),
BindingError(BindingError),
BindingArrayPartialLengthMismatch {
actual: usize,
expected: usize,
},
BindingArrayLengthMismatch {
actual: usize,
expected: usize,
},
BindingArrayZeroLength,
BindingSizeTooSmall {
buffer: ResourceErrorIdent,
actual: u64,
min: u64,
},
BindingZeroSize(ResourceErrorIdent),
BindingsNumMismatch {
actual: usize,
expected: usize,
},
DuplicateBinding(u32),
MissingBindingDeclaration(u32),
MissingBufferUsage(MissingBufferUsageError),
MissingTextureUsage(MissingTextureUsageError),
SingleBindingExpected,
UnalignedEffectiveBufferBindingSizeForStorage {
alignment: u32,
size: u64,
},
UnalignedBufferOffset(BufferAddress, &'static str, u32),
BufferRangeTooLarge {
binding: u32,
given: u64,
limit: u64,
},
WrongBindingType {
binding: u32,
actual: BindingType,
expected: &'static str,
},
InvalidTextureMultisample {
binding: u32,
layout_multisampled: bool,
view_samples: u32,
},
InvalidTextureSampleType {
binding: u32,
layout_sample_type: TextureSampleType,
view_format: TextureFormat,
view_sample_type: TextureSampleType,
},
InvalidTextureDimension {
binding: u32,
layout_dimension: TextureViewDimension,
view_dimension: TextureViewDimension,
},
InvalidTextureBindingViewDimension {
binding: u32,
view_dimension: TextureViewDimension,
texture_binding_view_dimension: TextureViewDimension,
},
InvalidStorageTextureFormat {
binding: u32,
layout_format: TextureFormat,
view_format: TextureFormat,
},
InvalidStorageTextureMipLevelCount {
binding: u32,
mip_level_count: u32,
},
InvalidStorageTextureSwizzle {
swizzle: TextureComponentSwizzle,
},
InvalidExternalTextureMipLevelCount {
binding: u32,
mip_level_count: u32,
},
InvalidExternalTextureFormat {
binding: u32,
format: TextureFormat,
},
WrongSamplerComparison {
binding: u32,
layout_cmp: bool,
sampler_cmp: bool,
},
WrongSamplerFiltering {
binding: u32,
layout_flt: bool,
sampler_flt: bool,
},
MissingTLASVertexReturn {
binding: u32,
},
DepthStencilAspect,
ResourceUsageCompatibility(ResourceUsageCompatibilityError),
InvalidResource(InvalidResourceError),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Device(DeviceError)
DestroyedResource(DestroyedResourceError)
BindingError(BindingError)
BindingArrayPartialLengthMismatch
BindingArrayLengthMismatch
BindingArrayZeroLength
BindingSizeTooSmall
BindingZeroSize(ResourceErrorIdent)
BindingsNumMismatch
DuplicateBinding(u32)
MissingBindingDeclaration(u32)
MissingBufferUsage(MissingBufferUsageError)
MissingTextureUsage(MissingTextureUsageError)
SingleBindingExpected
UnalignedEffectiveBufferBindingSizeForStorage
UnalignedBufferOffset(BufferAddress, &'static str, u32)
BufferRangeTooLarge
WrongBindingType
InvalidTextureMultisample
InvalidTextureSampleType
Fields
§
layout_sample_type: TextureSampleType§
view_format: TextureFormat§
view_sample_type: TextureSampleTypeInvalidTextureDimension
InvalidTextureBindingViewDimension
InvalidStorageTextureFormat
InvalidStorageTextureMipLevelCount
InvalidStorageTextureSwizzle
Fields
§
swizzle: TextureComponentSwizzleInvalidExternalTextureMipLevelCount
InvalidExternalTextureFormat
WrongSamplerComparison
WrongSamplerFiltering
MissingTLASVertexReturn
DepthStencilAspect
ResourceUsageCompatibility(ResourceUsageCompatibilityError)
InvalidResource(InvalidResourceError)
Trait Implementations§
Source§impl Clone for CreateBindGroupError
impl Clone for CreateBindGroupError
Source§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)>
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<BindingError> for CreateBindGroupError
impl From<BindingError> for CreateBindGroupError
Source§fn from(source: BindingError) -> Self
fn from(source: BindingError) -> Self
Converts to this type from the input type.
Source§impl From<DestroyedResourceError> for CreateBindGroupError
impl From<DestroyedResourceError> for CreateBindGroupError
Source§fn from(source: DestroyedResourceError) -> Self
fn from(source: DestroyedResourceError) -> Self
Converts to this type from the input type.
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.
Source§impl From<InvalidResourceError> for CreateBindGroupError
impl From<InvalidResourceError> for CreateBindGroupError
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingBufferUsageError> for CreateBindGroupError
impl From<MissingBufferUsageError> for CreateBindGroupError
Source§fn from(source: MissingBufferUsageError) -> Self
fn from(source: MissingBufferUsageError) -> Self
Converts to this type from the input type.
Source§impl From<MissingTextureUsageError> for CreateBindGroupError
impl From<MissingTextureUsageError> for CreateBindGroupError
Source§fn from(source: MissingTextureUsageError) -> Self
fn from(source: MissingTextureUsageError) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for CreateBindGroupError
impl WebGpuError for CreateBindGroupError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU
ErrorType.Auto Trait Implementations§
impl Forget for CreateBindGroupError
impl Freeze for CreateBindGroupErrorwhere
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
NonZero<u64>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
impl Move for CreateBindGroupError
impl RefUnwindSafe for CreateBindGroupErrorwhere
String: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl Send for CreateBindGroupError
impl Sync for CreateBindGroupError
impl Unpin for CreateBindGroupError
impl UnsafeUnpin for CreateBindGroupErrorwhere
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
impl UnwindSafe for CreateBindGroupErrorwhere
BoxRaw<DeviceMismatch>: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
NonZero<u64>: UnwindSafe,
InternalBitFlags: UnwindSafe,
InternalBitFlags: UnwindSafe,
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