Enum wgpu_core::command::ClearError [−][src]
pub enum ClearError {
Show 14 variants
MissingClearCommandsFeature,
InvalidCommandEncoder(CommandEncoderId),
InvalidDevice(DeviceId),
InvalidBuffer(BufferId),
InvalidTexture(TextureId),
UnalignedFillSize(BufferSize),
UnalignedBufferOffset(BufferAddress),
BufferOverrun {
start_offset: BufferAddress,
end_offset: BufferAddress,
buffer_size: BufferAddress,
},
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>),
MissingTextureAspect {
texture_format: TextureFormat,
subresource_range_aspects: TextureAspect,
},
DepthStencilFormatNotSupported,
MultisampledTextureUnsupported,
InvalidTextureLevelRange {
texture_level_range: Range<u32>,
subresource_base_mip_level: u32,
subresource_mip_level_count: Option<NonZeroU32>,
},
InvalidTextureLayerRange {
texture_layer_range: Range<u32>,
subresource_base_array_layer: u32,
subresource_array_layer_count: Option<NonZeroU32>,
},
}
Expand description
Error encountered while attempting a clear.
Variants
MissingClearCommandsFeature
InvalidCommandEncoder(CommandEncoderId)
Tuple Fields
InvalidDevice(DeviceId)
Tuple Fields
0: DeviceId
InvalidBuffer(BufferId)
Tuple Fields
0: BufferId
InvalidTexture(TextureId)
Tuple Fields
0: TextureId
UnalignedFillSize(BufferSize)
Tuple Fields
0: BufferSize
UnalignedBufferOffset(BufferAddress)
Tuple Fields
BufferOverrun
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>)
MissingTextureAspect
DepthStencilFormatNotSupported
MultisampledTextureUnsupported
InvalidTextureLevelRange
InvalidTextureLayerRange
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ClearError
impl Send for ClearError
impl Sync for ClearError
impl Unpin for ClearError
impl !UnwindSafe for ClearError
Blanket Implementations
Mutably borrows from an owned value. Read more