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 without_material(&self) -> Self
pub fn without_material(&self) -> Self
Returns a material-free handle sharing the same immutable topology and attribute buffers. No CPU geometry is copied and no GPU resource is allocated or uploaded. Existing handles and scene objects are unchanged. UVs, normals, vertex colors, display edges and reserved capacity remain available for later rebinding. Device provenance is unchanged; a stale handle still needs restoration before rendering on a replacement device.
Sourcepub const fn material(&self) -> Option<&TextureMaterial3d>
pub const fn material(&self) -> Option<&TextureMaterial3d>
Returns the optional shared texture/filter/tint material for this handle. Mesh clones share buffers while retaining independent material selection.
Sourcepub const fn budget(&self) -> Mesh3dUploadBudget
pub const fn budget(&self) -> Mesh3dUploadBudget
Returns this revision’s upload and restoration capacity limits.
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 allocated vertex, optional UV, triangle-index and display-edge
buffer capacity bytes, including dynamic reserve beyond live geometry.
Shared material texels are reported separately by Texture3d.
Sourcepub fn recovery_memory_bytes(&self) -> usize
pub fn recovery_memory_bytes(&self) -> usize
Returns CPU topology/UV bytes retained for device-loss restoration.
Shared material pixels are reported separately by Texture3d.