pub enum ResourceUsageCompatibilityError {
Buffer {
res: ResourceErrorIdent,
invalid_use: InvalidUse<BufferUses>,
},
Texture {
res: ResourceErrorIdent,
mip_levels: Range<u32>,
array_layers: Range<u32>,
invalid_use: InvalidUse<TextureUses>,
},
}Variants§
Implementations§
Source§impl ResourceUsageCompatibilityError
impl ResourceUsageCompatibilityError
fn from_buffer( buffer: &Buffer, current_state: BufferUses, new_state: BufferUses, ) -> Self
fn from_texture( texture: &Texture, selector: TextureSelector, current_state: TextureUses, new_state: TextureUses, ) -> Self
Trait Implementations§
Source§impl Clone for ResourceUsageCompatibilityError
impl Clone for ResourceUsageCompatibilityError
Source§fn clone(&self) -> ResourceUsageCompatibilityError
fn clone(&self) -> ResourceUsageCompatibilityError
Returns a duplicate 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 Error for ResourceUsageCompatibilityError
impl Error for ResourceUsageCompatibilityError
1.30.0 · 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<ResourceUsageCompatibilityError> for CommandEncoderError
impl From<ResourceUsageCompatibilityError> for CommandEncoderError
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUsageCompatibilityError> for ComputePassErrorInner
impl From<ResourceUsageCompatibilityError> for ComputePassErrorInner
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUsageCompatibilityError> for CreateBindGroupError
impl From<ResourceUsageCompatibilityError> for CreateBindGroupError
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUsageCompatibilityError> for RenderCommandError
impl From<ResourceUsageCompatibilityError> for RenderCommandError
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUsageCompatibilityError> for RenderPassErrorInner
impl From<ResourceUsageCompatibilityError> for RenderPassErrorInner
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUsageCompatibilityError> for TransitionResourcesError
impl From<ResourceUsageCompatibilityError> for TransitionResourcesError
Source§fn from(source: ResourceUsageCompatibilityError) -> Self
fn from(source: ResourceUsageCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for ResourceUsageCompatibilityError
impl WebGpuError for ResourceUsageCompatibilityError
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 Freeze for ResourceUsageCompatibilityError
impl RefUnwindSafe for ResourceUsageCompatibilityError
impl Send for ResourceUsageCompatibilityError
impl Sync for ResourceUsageCompatibilityError
impl Unpin for ResourceUsageCompatibilityError
impl UnwindSafe for ResourceUsageCompatibilityError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more