Skip to main content

prepare_clusters_for_cpu_clustering

Function prepare_clusters_for_cpu_clustering 

Source
pub fn prepare_clusters_for_cpu_clustering(
    commands: Commands<'_, '_>,
    render_device: Res<'_, RenderDevice>,
    render_queue: Res<'_, RenderQueue>,
    mesh_pipeline: Res<'_, MeshPipeline>,
    global_clusterable_object_meta: Res<'_, GlobalClusterableObjectMeta>,
    views: Query<'_, '_, (Entity, &ExtractedClusterableObjects, Option<&RenderViewLightProbes<EnvironmentMapLight>>, Option<&RenderViewLightProbes<IrradianceVolume>>)>,
)
Expand description

Creates and populates the GPU buffers that store clusters when CPU clustering is being used.