pub struct PooledMesh {
pub clusters: MeshClusters,
pub selection: Vec<ClusterSelect>,
}Expand description
One mesh’s clusters and, if it has a DAG, what each of them needs to descend it.
A pair rather than a fourth array on MeshClusters, because that type is
the geometry — it is what crcbl_scene::meshlet::build_meshlets produces
for a mesh with no hierarchy at all — and selection is
crcbl_shaders::cluster_dag’s. without_lod is what a
caller with only geometry passes, and it is not a special case downstream:
ClusterSelect::ALWAYS draws from every camera, so the pool uploads one
record per cluster either way.
Fields§
§clusters: MeshClustersThe clusters, their vertex runs and their corners.
selection: Vec<ClusterSelect>One ClusterSelect per cluster, parallel to
clusters.clusters.
Implementations§
Source§impl PooledMesh
impl PooledMesh
Sourcepub fn without_lod(clusters: MeshClusters) -> Self
pub fn without_lod(clusters: MeshClusters) -> Self
A mesh that is a single level: every cluster drawn whenever the mesh is.
Trait Implementations§
Source§impl Clone for PooledMesh
impl Clone for PooledMesh
Source§impl Debug for PooledMesh
impl Debug for PooledMesh
Source§impl PartialEq for PooledMesh
impl PartialEq for PooledMesh
impl StructuralPartialEq for PooledMesh
Auto Trait Implementations§
impl Forget for PooledMesh
impl Freeze for PooledMesh
impl Move for PooledMesh
impl RefUnwindSafe for PooledMesh
impl Send for PooledMesh
impl Sync for PooledMesh
impl Unpin for PooledMesh
impl UnsafeUnpin for PooledMesh
impl UnwindSafe for PooledMesh
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