pub struct ExtractedMesh {
pub transform: AffineTransform,
pub gpu_mesh_uuid: AssetUUID,
pub material_uuid: Option<AssetUUID>,
}Expand description
A flat, GPU-friendly representation of a single mesh to be rendered.
This struct contains all the necessary information, copied from various ECS components, required to issue a draw call for a mesh.
Fields§
§transform: AffineTransformThe world-space transformation matrix of the mesh, derived from GlobalTransform.
gpu_mesh_uuid: AssetUUIDThe unique identifier of the GpuMesh asset to be rendered.
material_uuid: Option<AssetUUID>The unique identifier of the material to be used for rendering.
If None, a default material should be used.
Auto Trait Implementations§
impl Freeze for ExtractedMesh
impl RefUnwindSafe for ExtractedMesh
impl Send for ExtractedMesh
impl Sync for ExtractedMesh
impl Unpin 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
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>
Converts
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>
Converts
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