Enum bevy_retrograde::core::luminance::tess::TessMapError [−]
#[non_exhaustive] pub enum TessMapError { BufferMapError(BufferError), VertexTypeMismatch(Vec<VertexBufferDesc, Global>, Vec<VertexBufferDesc, Global>), 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
BufferMapError(BufferError)
The CPU mapping failed due to buffer errors.
VertexTypeMismatch(Vec<VertexBufferDesc, Global>, Vec<VertexBufferDesc, Global>)
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
impl TessMapError
pub fn buffer_map_error(e: BufferError) -> TessMapError
pub fn buffer_map_error(e: BufferError) -> TessMapError
The CPU mapping failed due to buffer errors.
pub fn vertex_type_mismatch(
a: Vec<VertexBufferDesc, Global>,
b: Vec<VertexBufferDesc, Global>
) -> TessMapError
pub fn vertex_type_mismatch(
a: Vec<VertexBufferDesc, Global>,
b: Vec<VertexBufferDesc, Global>
) -> TessMapError
Vertex target type is not the same as the one stored in the buffer.
pub fn index_type_mismatch(a: TessIndexType, b: TessIndexType) -> TessMapError
pub fn index_type_mismatch(a: TessIndexType, b: TessIndexType) -> TessMapError
Index target type is not the same as the one stored in the buffer.
pub fn forbidden_attributeless_mapping() -> TessMapError
pub fn forbidden_attributeless_mapping() -> TessMapError
The CPU mapping failed because you cannot map an attributeless tessellation since it doesn’t have any vertex attribute.
pub fn forbidden_deinterleaved_mapping() -> TessMapError
pub fn forbidden_deinterleaved_mapping() -> TessMapError
The CPU mapping failed because currently, mapping deinterleaved buffers is not supported via a single slice.
Trait Implementations
impl Debug for TessMapError
impl Debug for TessMapError
impl Display for TessMapError
impl Display for TessMapError
impl Error for TessMapError
impl Error for TessMapError
impl From<BufferError> for TessMapError
impl From<BufferError> for TessMapError
pub fn from(e: BufferError) -> TessMapError
pub fn from(e: BufferError) -> TessMapError
Performs the conversion.
impl PartialEq<TessMapError> for TessMapError
impl PartialEq<TessMapError> for TessMapError
pub fn eq(&self, other: &TessMapError) -> bool
pub fn eq(&self, other: &TessMapError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &TessMapError) -> bool
pub 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
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V