Enum wgpu_core::binding_model::CreateBindGroupError [−][src]
pub enum CreateBindGroupError {
Show 28 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),
SingleBindingExpected,
UnalignedBufferOffset(BufferAddress),
BufferRangeTooLarge {
binding: u32,
given: u32,
limit: u32,
},
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,
},
InvalidTextureDimension {
binding: u32,
layout_dimension: TextureViewDimension,
view_dimension: TextureViewDimension,
},
InvalidStorageTextureFormat {
binding: u32,
layout_format: TextureFormat,
view_format: TextureFormat,
},
InvalidStorageTextureMipLevelCount {
binding: u32,
mip_level_count: u32,
},
WrongSamplerComparison {
binding: u32,
layout_cmp: bool,
sampler_cmp: bool,
},
WrongSamplerFiltering {
binding: u32,
layout_flt: bool,
sampler_flt: bool,
},
DepthStencilAspect,
StorageReadNotSupported(TextureFormat),
ResourceUsageConflict(UsageConflict),
}
Variants
Device(DeviceError)
Tuple Fields of Device
0: DeviceError
InvalidBuffer(BufferId)
Tuple Fields of InvalidBuffer
0: BufferId
InvalidTextureView(TextureViewId)
Tuple Fields of InvalidTextureView
InvalidSampler(SamplerId)
Tuple Fields of InvalidSampler
0: SamplerId
Fields of BindingRangeTooLarge
BindingZeroSize(BufferId)
Tuple Fields of BindingZeroSize
0: BufferId
DuplicateBinding(u32)
Tuple Fields of DuplicateBinding
0: u32
MissingBindingDeclaration(u32)
Tuple Fields of MissingBindingDeclaration
0: u32
UnalignedBufferOffset(BufferAddress)
Tuple Fields of UnalignedBufferOffset
Fields of WrongBindingType
Fields of InvalidTextureSampleType
Fields of InvalidTextureDimension
Fields of InvalidStorageTextureFormat
StorageReadNotSupported(TextureFormat)
Tuple Fields of StorageReadNotSupported
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for CreateBindGroupError
impl Send for CreateBindGroupError
impl Sync for CreateBindGroupError
impl Unpin for CreateBindGroupError
impl !UnwindSafe for CreateBindGroupError
Blanket Implementations
Mutably borrows from an owned value. Read more