pub struct ExtractedMesh {
pub transform: AffineTransform,
pub cpu_mesh_uuid: AssetUUID,
pub gpu_mesh: AssetHandle<GpuMesh>,
pub material: Option<AssetHandle<Box<dyn Material>>>,
pub gpu_material: Option<AssetHandle<GpuMaterial>>,
}Expand description
Flat, GPU-friendly representation of a single mesh to render.
Fields§
§transform: AffineTransformWorld-space transform derived from GlobalTransform.
cpu_mesh_uuid: AssetUUIDUUID of the loaded CPU mesh — useful for debugging or mapping.
gpu_mesh: AssetHandle<GpuMesh>Handle to the uploaded GPU mesh data.
material: Option<AssetHandle<Box<dyn Material>>>Optional CPU-side material handle. None means use a default material.
Still consumed by lanes that branch on the concrete material type
(e.g. SimpleUnlitLane pipeline selection); lit lanes read the
projected gpu_material instead.
gpu_material: Option<AssetHandle<GpuMaterial>>Handle to the projected GPU material (uniform buffer + textures +
group-2 bind group), produced by the material projection. None
until the projection has uploaded it, or when the entity carries no
resolved material handle (lit lanes fall back to a default material).
Trait Implementations§
Source§impl Clone for ExtractedMesh
impl Clone for ExtractedMesh
Source§fn clone(&self) -> ExtractedMesh
fn clone(&self) -> ExtractedMesh
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtractedMesh
impl !RefUnwindSafe for ExtractedMesh
impl Send for ExtractedMesh
impl Sync for ExtractedMesh
impl Unpin for ExtractedMesh
impl UnsafeUnpin for ExtractedMesh
impl !UnwindSafe for ExtractedMesh
Blanket Implementations§
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