pub struct ImportedMesh {
pub mesh: Mesh,
pub normals: Option<Vec<[f32; 3]>>,
pub tangents: Option<Vec<[f32; 4]>>,
pub texture_coordinates_0: Option<Vec<[f32; 2]>>,
pub materials: Vec<MaterialRecord>,
pub texture_dependencies: Vec<TextureDependency>,
pub submeshes: Vec<SubmeshRange>,
}Expand description
Mesh plus optional normal and tangent streams. Tangents may be authored or generated from TEXCOORD_0; importers without the required data leave a stream empty for renderer fallback.
Fields§
§mesh: Mesh§normals: Option<Vec<[f32; 3]>>§tangents: Option<Vec<[f32; 4]>>Authored glTF tangent direction and handedness, or MikkTSpace-generated frames when UV0 is available. A missing UV0 leaves the stream absent for the renderer’s capability fallback.
texture_coordinates_0: Option<Vec<[f32; 2]>>Vertex-aligned glTF TEXCOORD_0 pairs, including any vertices split to preserve tangent seams.
materials: Vec<MaterialRecord>Imported glTF materials. Their IDs are source-local (index + 1) until the asset
compiler scopes them to a stable asset identity.
texture_dependencies: Vec<TextureDependency>Content-addressed image payloads referenced by imported material records. Payload bytes remain intact for HMC/resource packaging; they are not copied into the 10D semantic arena.
submeshes: Vec<SubmeshRange>Contiguous index ranges in the same order as the flattened primitive index stream.
Trait Implementations§
Source§impl Clone for ImportedMesh
impl Clone for ImportedMesh
Source§impl Debug for ImportedMesh
impl Debug for ImportedMesh
Source§impl PartialEq for ImportedMesh
impl PartialEq for ImportedMesh
impl StructuralPartialEq for ImportedMesh
Auto Trait Implementations§
impl Freeze for ImportedMesh
impl RefUnwindSafe for ImportedMesh
impl Send for ImportedMesh
impl Sync for ImportedMesh
impl Unpin for ImportedMesh
impl UnsafeUnpin for ImportedMesh
impl UnwindSafe for ImportedMesh
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more