pub struct RetainedMesh3d { /* private fields */ }Expand description
Immutable retained GPU buffers for one validated Mesh3d.
The resource belongs to the renderer that created it and retains the core topology for explicit device-loss restoration.
Implementations§
Source§impl RetainedMesh3d
impl RetainedMesh3d
Sourcepub fn triangle_count(&self) -> usize
pub fn triangle_count(&self) -> usize
Returns the retained triangle count.
Sourcepub const fn gpu_allocation_bytes(&self) -> usize
pub const fn gpu_allocation_bytes(&self) -> usize
Returns exact vertex, triangle-index, and display-edge buffer bytes.
Sourcepub fn recovery_memory_bytes(&self) -> usize
pub fn recovery_memory_bytes(&self) -> usize
Returns CPU topology bytes retained for device-loss restoration.
Trait Implementations§
Source§impl Clone for RetainedMesh3d
impl Clone for RetainedMesh3d
Source§fn clone(&self) -> RetainedMesh3d
fn clone(&self) -> RetainedMesh3d
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 !RefUnwindSafe for RetainedMesh3d
impl !UnwindSafe for RetainedMesh3d
impl Freeze for RetainedMesh3d
impl Send for RetainedMesh3d
impl Sync for RetainedMesh3d
impl Unpin for RetainedMesh3d
impl UnsafeUnpin for RetainedMesh3d
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