Enum wgpu_core::track::UsageConflict
source · pub enum UsageConflict {
BufferInvalid {
id: BufferId,
},
TextureInvalid {
id: TextureId,
},
Buffer {
id: BufferId,
invalid_use: InvalidUse<BufferUses>,
},
Texture {
id: TextureId,
mip_levels: Range<u32>,
array_layers: Range<u32>,
invalid_use: InvalidUse<TextureUses>,
},
}
Variants§
Implementations§
source§impl UsageConflict
impl UsageConflict
fn from_buffer( id: BufferId, current_state: BufferUses, new_state: BufferUses ) -> Self
fn from_texture( id: TextureId, selector: TextureSelector, current_state: TextureUses, new_state: TextureUses ) -> Self
Trait Implementations§
source§impl Clone for UsageConflict
impl Clone for UsageConflict
source§fn clone(&self) -> UsageConflict
fn clone(&self) -> UsageConflict
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 Debug for UsageConflict
impl Debug for UsageConflict
source§impl Display for UsageConflict
impl Display for UsageConflict
source§impl Error for UsageConflict
impl Error for UsageConflict
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<UsageConflict> for ComputePassErrorInner
impl From<UsageConflict> for ComputePassErrorInner
source§fn from(source: UsageConflict) -> Self
fn from(source: UsageConflict) -> Self
Converts to this type from the input type.
source§impl From<UsageConflict> for CreateBindGroupError
impl From<UsageConflict> for CreateBindGroupError
source§fn from(source: UsageConflict) -> Self
fn from(source: UsageConflict) -> Self
Converts to this type from the input type.
source§impl From<UsageConflict> for RenderCommandError
impl From<UsageConflict> for RenderCommandError
source§fn from(source: UsageConflict) -> Self
fn from(source: UsageConflict) -> Self
Converts to this type from the input type.
source§impl From<UsageConflict> for RenderPassErrorInner
impl From<UsageConflict> for RenderPassErrorInner
source§fn from(source: UsageConflict) -> Self
fn from(source: UsageConflict) -> Self
Converts to this type from the input type.
source§impl PartialEq<UsageConflict> for UsageConflict
impl PartialEq<UsageConflict> for UsageConflict
source§fn eq(&self, other: &UsageConflict) -> bool
fn eq(&self, other: &UsageConflict) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PrettyError for UsageConflict
impl PrettyError for UsageConflict
fn fmt_pretty(&self, fmt: &mut ErrorFormatter<'_>)
impl Eq for UsageConflict
impl StructuralEq for UsageConflict
impl StructuralPartialEq for UsageConflict
Auto Trait Implementations§
impl !RefUnwindSafe for UsageConflict
impl Send for UsageConflict
impl Sync for UsageConflict
impl Unpin for UsageConflict
impl !UnwindSafe for UsageConflict
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.