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 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 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)>
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 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.
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