Enum luminance::tess::TessMapError
source · [−]#[non_exhaustive]
pub enum TessMapError {
CannotMap,
VertexTypeMismatch(VertexDesc, VertexDesc),
IndexTypeMismatch(TessIndexType, TessIndexType),
ForbiddenAttributelessMapping,
ForbiddenDeinterleavedMapping,
}
Expand description
Error that can occur while trying to map GPU tessellations to host code.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CannotMap
Cannot obtain a slice on the backend.
VertexTypeMismatch(VertexDesc, VertexDesc)
Vertex target type is not the same as the one stored in the buffer.
IndexTypeMismatch(TessIndexType, TessIndexType)
Index target type is not the same as the one stored in the buffer.
ForbiddenAttributelessMapping
The CPU mapping failed because you cannot map an attributeless tessellation since it doesn’t have any vertex attribute.
ForbiddenDeinterleavedMapping
The CPU mapping failed because currently, mapping deinterleaved buffers is not supported via a single slice.
Implementations
sourceimpl TessMapError
impl TessMapError
sourcepub fn cannot_map() -> Self
pub fn cannot_map() -> Self
Cannot obtain a slice on the backend.
sourcepub fn vertex_type_mismatch(a: VertexDesc, b: VertexDesc) -> Self
pub fn vertex_type_mismatch(a: VertexDesc, b: VertexDesc) -> Self
Vertex target type is not the same as the one stored in the buffer.
sourcepub fn index_type_mismatch(a: TessIndexType, b: TessIndexType) -> Self
pub fn index_type_mismatch(a: TessIndexType, b: TessIndexType) -> Self
Index target type is not the same as the one stored in the buffer.
sourcepub fn forbidden_attributeless_mapping() -> Self
pub fn forbidden_attributeless_mapping() -> Self
The CPU mapping failed because you cannot map an attributeless tessellation since it doesn’t have any vertex attribute.
sourcepub fn forbidden_deinterleaved_mapping() -> Self
pub fn forbidden_deinterleaved_mapping() -> Self
The CPU mapping failed because currently, mapping deinterleaved buffers is not supported via a single slice.
Trait Implementations
sourceimpl Debug for TessMapError
impl Debug for TessMapError
sourceimpl Display for TessMapError
impl Display for TessMapError
sourceimpl Error for TessMapError
impl Error for TessMapError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<TessMapError> for TessMapError
impl PartialEq<TessMapError> for TessMapError
sourcefn eq(&self, other: &TessMapError) -> bool
fn eq(&self, other: &TessMapError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TessMapError) -> bool
fn ne(&self, other: &TessMapError) -> bool
This method tests for !=
.
impl Eq for TessMapError
impl StructuralEq for TessMapError
impl StructuralPartialEq for TessMapError
Auto Trait Implementations
impl RefUnwindSafe for TessMapError
impl Send for TessMapError
impl Sync for TessMapError
impl Unpin for TessMapError
impl UnwindSafe for TessMapError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more