[−][src]Enum luminance::tess::TessMapError
Error that can occur while trying to map GPU tessellations to host code.
Variants (Non-exhaustive)
BufferMapError(BufferError)
The CPU mapping failed due to buffer errors.
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.
The CPU mapping failed because you cannot map an attributeless tessellation since it doesn’t have any vertex attribute.
The CPU mapping failed because currently, mapping deinterleaved buffers is not supported via a single slice.
Implementations
impl TessMapError
[src]
pub fn buffer_map_error(e: BufferError) -> Self
[src]
The CPU mapping failed due to buffer errors.
pub fn vertex_type_mismatch(a: VertexDesc, b: VertexDesc) -> Self
[src]
Vertex target type is not the same as the one stored in the buffer.
pub fn index_type_mismatch(a: TessIndexType, b: TessIndexType) -> Self
[src]
Index target type is not the same as the one stored in the buffer.
pub fn forbidden_attributeless_mapping() -> Self
[src]
The CPU mapping failed because you cannot map an attributeless tessellation since it doesn’t have any vertex attribute.
pub fn forbidden_deinterleaved_mapping() -> Self
[src]
The CPU mapping failed because currently, mapping deinterleaved buffers is not supported via a single slice.
Trait Implementations
impl Debug for TessMapError
[src]
impl Display for TessMapError
[src]
impl Eq for TessMapError
[src]
impl Error for TessMapError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<BufferError> for TessMapError
[src]
fn from(e: BufferError) -> Self
[src]
impl PartialEq<TessMapError> for TessMapError
[src]
fn eq(&self, other: &TessMapError) -> bool
[src]
fn ne(&self, other: &TessMapError) -> bool
[src]
impl StructuralEq for TessMapError
[src]
impl StructuralPartialEq for TessMapError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,