pub struct RuntimeMeshPayloads(/* private fields */);Expand description
Mesh payloads baked at world start, each under the asset id of the value that owns it, in the order they were installed.
Their handles sit in the MeshBlock::Runtime
tail of the shared mesh-source space, past every handle the build assigned,
so the position here is the handle’s offset into that tail.
Implementations§
Source§impl RuntimeMeshPayloads
impl RuntimeMeshPayloads
Sourcepub fn push(&mut self, id: AssetId, payload: Vec<u8>)
pub fn push(&mut self, id: AssetId, payload: Vec<u8>)
Install payload as id’s geometry, at the next handle in the tail.
Sourcepub fn get(&self, id: AssetId) -> Option<&[u8]>
pub fn get(&self, id: AssetId) -> Option<&[u8]>
The baked payload for one asset, if the world minted its geometry.
Trait Implementations§
Source§impl Clone for RuntimeMeshPayloads
impl Clone for RuntimeMeshPayloads
Source§fn clone(&self) -> RuntimeMeshPayloads
fn clone(&self) -> RuntimeMeshPayloads
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 moreSource§impl Debug for RuntimeMeshPayloads
impl Debug for RuntimeMeshPayloads
Source§impl Default for RuntimeMeshPayloads
impl Default for RuntimeMeshPayloads
Source§fn default() -> RuntimeMeshPayloads
fn default() -> RuntimeMeshPayloads
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeMeshPayloads
impl RefUnwindSafe for RuntimeMeshPayloads
impl Send for RuntimeMeshPayloads
impl Sync for RuntimeMeshPayloads
impl Unpin for RuntimeMeshPayloads
impl UnsafeUnpin for RuntimeMeshPayloads
impl UnwindSafe for RuntimeMeshPayloads
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