#[non_exhaustive]pub enum CreateExternalTextureError {
Device(DeviceError),
MissingFeatures(MissingFeatures),
InvalidResource(InvalidResourceError),
CreateBuffer(CreateBufferError),
QueueWrite(QueueWriteError),
IncorrectPlaneCount {
format: ExternalTextureFormat,
expected: usize,
provided: usize,
},
InvalidPlaneMultisample(u32),
InvalidPlaneSampleType {
format: TextureFormat,
sample_type: TextureSampleType,
},
InvalidPlaneDimension(TextureViewDimension),
MissingTextureUsage(MissingTextureUsageError),
InvalidPlaneFormat {
format: ExternalTextureFormat,
plane: usize,
expected: u8,
provided: TextureFormat,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Device(DeviceError)
MissingFeatures(MissingFeatures)
InvalidResource(InvalidResourceError)
CreateBuffer(CreateBufferError)
QueueWrite(QueueWriteError)
IncorrectPlaneCount
InvalidPlaneMultisample(u32)
InvalidPlaneSampleType
InvalidPlaneDimension(TextureViewDimension)
MissingTextureUsage(MissingTextureUsageError)
InvalidPlaneFormat
Trait Implementations§
Source§impl Clone for CreateExternalTextureError
impl Clone for CreateExternalTextureError
Source§fn clone(&self) -> CreateExternalTextureError
fn clone(&self) -> CreateExternalTextureError
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 CreateExternalTextureError
impl Debug for CreateExternalTextureError
Source§impl Display for CreateExternalTextureError
impl Display for CreateExternalTextureError
Source§impl Error for CreateExternalTextureError
impl Error for CreateExternalTextureError
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<CreateBufferError> for CreateExternalTextureError
impl From<CreateBufferError> for CreateExternalTextureError
Source§fn from(source: CreateBufferError) -> Self
fn from(source: CreateBufferError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CreateExternalTextureError
impl From<DeviceError> for CreateExternalTextureError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for CreateExternalTextureError
impl From<InvalidResourceError> for CreateExternalTextureError
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingFeatures> for CreateExternalTextureError
impl From<MissingFeatures> for CreateExternalTextureError
Source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
Source§impl From<MissingTextureUsageError> for CreateExternalTextureError
impl From<MissingTextureUsageError> for CreateExternalTextureError
Source§fn from(source: MissingTextureUsageError) -> Self
fn from(source: MissingTextureUsageError) -> Self
Converts to this type from the input type.
Source§impl From<QueueWriteError> for CreateExternalTextureError
impl From<QueueWriteError> for CreateExternalTextureError
Source§fn from(source: QueueWriteError) -> Self
fn from(source: QueueWriteError) -> Self
Converts to this type from the input type.
Source§impl WebGpuError for CreateExternalTextureError
impl WebGpuError for CreateExternalTextureError
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 CreateExternalTextureError
impl RefUnwindSafe for CreateExternalTextureError
impl Send for CreateExternalTextureError
impl Sync for CreateExternalTextureError
impl Unpin for CreateExternalTextureError
impl UnwindSafe for CreateExternalTextureError
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