Enum luminance::tess::TessMapError [−][src]
#[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
Cannot obtain a slice on the backend.
Vertex target type is not the same as the one stored in the buffer.
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.