Expand description
Full, lossless glTF 2.0 / pinned 2.1-draft model with Draco geometry.
Document is the public scene model, and all unknown JSON remains part
of that model.
Re-exports§
pub use document::Accessor;pub use document::AccessorIndex;pub use document::Animation;pub use document::AnimationIndex;pub use document::BoundingVolume;pub use document::Buffer;pub use document::BufferIndex;pub use document::BufferView;pub use document::BufferViewIndex;pub use document::Camera;pub use document::CameraIndex;pub use document::ComponentType;pub use document::Document;pub use document::ExternalAsset;pub use document::ExternalAssetIndex;pub use document::File;pub use document::FileIndex;pub use document::Image;pub use document::ImageIndex;pub use document::Material;pub use document::MaterialIndex;pub use document::Mesh;pub use document::MeshIndex;pub use document::Node;pub use document::NodeIndex;pub use document::PrimitiveIndex;pub use document::PrimitiveRef;pub use document::Sampler;pub use document::SamplerIndex;pub use document::Scene;pub use document::SceneIndex;pub use document::Shape;pub use document::ShapeIndex;pub use document::Skin;pub use document::SkinIndex;pub use document::Texture;pub use document::TextureIndex;pub use document::ValidationProfile;pub use extensions::BinaryFreeExtension;pub use extensions::DracoExtension;pub use extensions::ExtensionHandler;pub use extensions::ExtensionRegistry;pub use extensions::ExtensionValidationContext;pub use extensions::MeshGpuInstancingExtension;pub use extensions::ResourceStore;pub use extensions::StructuralMetadataExtension;pub use extensions::BINARY_FREE_EXTENSIONS;pub use extensions::EXT_MESHOPT_COMPRESSION;pub use extensions::EXT_MESH_GPU_INSTANCING;pub use extensions::EXT_STRUCTURAL_METADATA;pub use extensions::KHR_DRACO_MESH_COMPRESSION;pub use extensions::KHR_MESHOPT_COMPRESSION;
Modules§
- document
- Lossless document model and typed views for glTF scenes. Lossless glTF document model and typed object views.
- extensions
- Extension contracts and resource storage used by document transforms. Extension contracts for the lossless document model.
Structs§
- Accessor
Data - Tightly packed accessor payload for geometry consumers.
- Compression
Options - Controls document-preserving Draco compression.
- Compression
Report - Measured result of one
Import::compress_primitiveoperation. - Document
Accessor Source - Accessor source backed by a
Documentand its resolved resources. - File
Resource Resolver - Filesystem resolver used by convenience file-loading APIs.
- Geometry
Write Options - Options controlling one geometry write operation.
- Geometry
Write Report - Measured result of one atomic geometry write.
- GlbRange
Reader - Seekable, range-backed GLB source.
- Gltf
Output - A portable JSON glTF document and the companion resources it references.
- Gltf
Resource - One companion resource produced by
Import::to_gltf_output. - Import
- Lossless glTF document plus its resolved resources.
- Import
Options - Options controlling document loading, resource resolution and validation.
- Packed
Attribute - One materialized, tightly packed vertex attribute.
- Packed
Geometry - Materialized primitive geometry with contiguous attribute and index buffers.
- Packed
Indices - One materialized, tightly packed primitive index stream.
- Resource
Limits - Optional resource quotas.
Nonemeans unlimited.
Enums§
- Compression
Mode - How the exported primitive exposes its Draco payload.
- Error
- Errors returned by glTF parsing and Draco operations.
- External
File Policy - Policy used by
FileResourceResolver. - Geometry
Encoding - Storage selected for newly written primitive geometry.
- Geometry
Error - Validation errors for materialized primitive geometry.
- Gltf
Container Format - Container used by an input glTF document.
- Gltf
Error - Errors that can occur when reading, transforming, or decoding glTF data.
- Json
Value - Lossless JSON value used by the document model. Dependency-free JSON value that preserves number lexemes and object order.
- Output
Format - Container representation selected when serializing an import.
- Preserve
Reason - Why source resource bytes were conservatively retained after a write.
- Primitive
Mode - glTF primitive topology mode.
Constants§
- DEFAULT_
EXTERNAL_ ASSET_ DEPTH - Default maximum explicit nested-asset depth for
Import::load_asset.
Traits§
- Resource
Resolver - Synchronous resolver for non-data resource URIs.
Functions§
- import
- Opens a glTF or GLB file using the draft validation profile.
- import_
slice - Parses glTF or GLB bytes using the draft validation profile.
- import_
slice_ with_ options - Parses glTF or GLB bytes with explicit loading options.
- open
- Opens a glTF or GLB file and applies the selected profile’s basic checks.
- parse
- Parses glTF or GLB bytes and applies the selected profile’s basic checks.
- parse_
with_ options - Parses a container with explicit resource, quota, profile and extension options.
- validate
- Applies the available checks for the pinned draft profile.
Type Aliases§
- Result
- Result type returned by this crate.