pub struct DynamicMeshUpdateReport { /* private fields */ }Expand description
CPU-side outcome of one dynamic mesh update.
Implementations§
Source§impl DynamicMeshUpdateReport
impl DynamicMeshUpdateReport
Sourcepub fn vertex_count(self) -> usize
pub fn vertex_count(self) -> usize
Returns the current triangle-list vertex count after the update.
Sourcepub fn upload(self) -> Duration
pub fn upload(self) -> Duration
Returns CPU time spent validating, allocating when needed, and writing GPU data.
Sourcepub fn reallocated(self) -> bool
pub fn reallocated(self) -> bool
Returns whether this update grew and replaced the mesh GPU buffer.
Trait Implementations§
Source§impl Clone for DynamicMeshUpdateReport
impl Clone for DynamicMeshUpdateReport
Source§fn clone(&self) -> DynamicMeshUpdateReport
fn clone(&self) -> DynamicMeshUpdateReport
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 moreimpl Copy for DynamicMeshUpdateReport
Source§impl Debug for DynamicMeshUpdateReport
impl Debug for DynamicMeshUpdateReport
impl Eq for DynamicMeshUpdateReport
Source§impl PartialEq for DynamicMeshUpdateReport
impl PartialEq for DynamicMeshUpdateReport
impl StructuralPartialEq for DynamicMeshUpdateReport
Auto Trait Implementations§
impl Freeze for DynamicMeshUpdateReport
impl RefUnwindSafe for DynamicMeshUpdateReport
impl Send for DynamicMeshUpdateReport
impl Sync for DynamicMeshUpdateReport
impl Unpin for DynamicMeshUpdateReport
impl UnsafeUnpin for DynamicMeshUpdateReport
impl UnwindSafe for DynamicMeshUpdateReport
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.