[][src]Enum luminance::tess::TessMapError

#[non_exhaustive]pub enum TessMapError {
    BufferMapError(BufferError),
    VertexTypeMismatch(VertexDescVertexDesc),
    IndexTypeMismatch(TessIndexTypeTessIndexType),
    ForbiddenAttributelessMapping,
    ForbiddenDeinterleavedMapping,
}

Error that can occur while trying to map GPU tessellations to host code.

Variants (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.
BufferMapError(BufferError)

The CPU mapping failed due to buffer errors.

VertexTypeMismatch(VertexDescVertexDesc)

Vertex target type is not the same as the one stored in the buffer.

IndexTypeMismatch(TessIndexTypeTessIndexType)

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

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]

impl From<BufferError> for TessMapError[src]

impl PartialEq<TessMapError> for TessMapError[src]

impl StructuralEq for TessMapError[src]

impl StructuralPartialEq for TessMapError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.