pub struct RetainedMeshAsset {
pub id: u64,
pub revision: u64,
pub vertices: Arc<Vec<RteTileVertex>>,
pub indices: Arc<Vec<u32>>,
pub vertex_colors: Option<Arc<Vec<[f32; 4]>>>,
pub albedo_texture: Option<Arc<RetainedTileTexture>>,
}Expand description
Canonical local-space 3D mesh asset uploaded once to GPU VRAM and shared across any number of
RetainedGeoInstances.
Vertex coordinates are authored in local model metres (+X East, +Y North, +Z Up).
Fields§
§id: u64§revision: u64§vertices: Arc<Vec<RteTileVertex>>§indices: Arc<Vec<u32>>§vertex_colors: Option<Arc<Vec<[f32; 4]>>>Optional per-vertex RGBA colors (len == vertices.len()); None defaults to white [1,1,1,1].
albedo_texture: Option<Arc<RetainedTileTexture>>Optional default base-color albedo texture bound when an instance does not specify its own.
Trait Implementations§
Source§impl Clone for RetainedMeshAsset
impl Clone for RetainedMeshAsset
Source§impl Debug for RetainedMeshAsset
impl Debug for RetainedMeshAsset
Source§impl PartialEq for RetainedMeshAsset
impl PartialEq for RetainedMeshAsset
impl StructuralPartialEq for RetainedMeshAsset
Auto Trait Implementations§
impl Forget for RetainedMeshAsset
impl Freeze for RetainedMeshAsset
impl Move for RetainedMeshAsset
impl RefUnwindSafe for RetainedMeshAsset
impl Send for RetainedMeshAsset
impl Sync for RetainedMeshAsset
impl Unpin for RetainedMeshAsset
impl UnsafeUnpin for RetainedMeshAsset
impl UnwindSafe for RetainedMeshAsset
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