pub enum Mesh3dResourceError {
Texture(Texture3dError),
NonPortableTextureCoordinate,
InvalidBudget,
RendererMismatch,
BudgetExceeded {
resource: Mesh3dUploadBudgetResource,
limit: usize,
actual: usize,
},
CapacityTooLarge,
NonPortableVertex,
HostAllocationFailed {
requested_bytes: u64,
},
Target(RenderTargetError),
InvalidViewportAspect,
}Expand description
Resource creation or ownership failure for retained 3D rendering.
Variants§
Texture(Texture3dError)
Texture creation, restoration or material validation failed.
NonPortableTextureCoordinate
A retained UV is subnormal and outside the portable shader envelope.
InvalidBudget
Explicit mesh upload limits must be nonzero.
RendererMismatch
The replaced resource belongs to another logical renderer generation.
BudgetExceeded
Upload limits rejected bytes before caller-scale allocation.
Fields
§
resource: Mesh3dUploadBudgetResourceRejected byte category.
CapacityTooLarge
Vertex, index, or edge data exceeds the active device’s buffer-size limit.
NonPortableVertex
At least one retained model-space vertex is outside the portable shader envelope.
HostAllocationFailed
Host staging memory could not be reserved after capacity preflight.
Target(RenderTargetError)
Color/depth target creation failed.
InvalidViewportAspect
Physical texture and logical viewport aspect ratios differ.
Trait Implementations§
Source§impl Clone for Mesh3dResourceError
impl Clone for Mesh3dResourceError
Source§fn clone(&self) -> Mesh3dResourceError
fn clone(&self) -> Mesh3dResourceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Mesh3dResourceError
Source§impl Debug for Mesh3dResourceError
impl Debug for Mesh3dResourceError
Source§impl Display for Mesh3dResourceError
impl Display for Mesh3dResourceError
Source§impl Error for Mesh3dResourceError
impl Error for Mesh3dResourceError
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 PartialEq for Mesh3dResourceError
impl PartialEq for Mesh3dResourceError
impl StructuralPartialEq for Mesh3dResourceError
Auto Trait Implementations§
impl Freeze for Mesh3dResourceError
impl RefUnwindSafe for Mesh3dResourceError
impl Send for Mesh3dResourceError
impl Sync for Mesh3dResourceError
impl Unpin for Mesh3dResourceError
impl UnsafeUnpin for Mesh3dResourceError
impl UnwindSafe for Mesh3dResourceError
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