Enum bevy_internal::gltf::GltfError
source · pub enum GltfError {
Show 13 variants
UnsupportedPrimitive {
mode: Mode,
},
Gltf(Error),
MissingBlob,
Base64Decode(DecodeError),
BufferFormatUnsupported,
InvalidImageMimeType(String),
ImageError(TextureError),
ReadAssetBytesError(ReadAssetBytesError),
AssetLoadError(AssetLoadError),
MissingAnimationSampler(usize),
GenerateTangentsError(GenerateTangentsError),
MorphTarget(MorphBuildError),
Io(Error),
}
Expand description
An error that occurs when loading a glTF file.
Variants§
UnsupportedPrimitive
Unsupported primitive mode.
Gltf(Error)
Invalid glTF file.
MissingBlob
Binary blob is missing.
Base64Decode(DecodeError)
Decoding the base64 mesh data failed.
BufferFormatUnsupported
Unsupported buffer format.
InvalidImageMimeType(String)
Invalid image mime type.
ImageError(TextureError)
Error when loading a texture. Might be due to a disabled image file format feature.
ReadAssetBytesError(ReadAssetBytesError)
Failed to read bytes from an asset path.
AssetLoadError(AssetLoadError)
Failed to load asset from an asset path.
MissingAnimationSampler(usize)
Missing sampler for an animation.
GenerateTangentsError(GenerateTangentsError)
Failed to generate tangents.
MorphTarget(MorphBuildError)
Failed to generate morph targets.
Io(Error)
Failed to load a file.
Trait Implementations§
source§impl Error for GltfError
impl Error for GltfError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AssetLoadError> for GltfError
impl From<AssetLoadError> for GltfError
source§fn from(source: AssetLoadError) -> GltfError
fn from(source: AssetLoadError) -> GltfError
Converts to this type from the input type.
source§impl From<DecodeError> for GltfError
impl From<DecodeError> for GltfError
source§fn from(source: DecodeError) -> GltfError
fn from(source: DecodeError) -> GltfError
Converts to this type from the input type.
source§impl From<GenerateTangentsError> for GltfError
impl From<GenerateTangentsError> for GltfError
source§fn from(source: GenerateTangentsError) -> GltfError
fn from(source: GenerateTangentsError) -> GltfError
Converts to this type from the input type.
source§impl From<MorphBuildError> for GltfError
impl From<MorphBuildError> for GltfError
source§fn from(source: MorphBuildError) -> GltfError
fn from(source: MorphBuildError) -> GltfError
Converts to this type from the input type.
source§impl From<ReadAssetBytesError> for GltfError
impl From<ReadAssetBytesError> for GltfError
source§fn from(source: ReadAssetBytesError) -> GltfError
fn from(source: ReadAssetBytesError) -> GltfError
Converts to this type from the input type.
source§impl From<TextureError> for GltfError
impl From<TextureError> for GltfError
source§fn from(source: TextureError) -> GltfError
fn from(source: TextureError) -> GltfError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GltfError
impl Send for GltfError
impl Sync for GltfError
impl Unpin for GltfError
impl !UnwindSafe for GltfError
Blanket Implementations§
source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn 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
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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.