Module culling

Source
Expand description

Material agnostic culling on either the CPU or GPU.

Structs§

CpuDrawCall
All the information needed to dispatch a CPU draw call.
CulledObjectSet
A set of objects that have been called. Contains the information needed to dispatch a render.
GpuCuller
Provides GPU based object culling.
GpuIndirectData
The data needed to do an indirect draw call for an entire material archetype.
PerMaterialArchetypeData
Handles to the data that corresponds with a single material archetype.

Functions§

add_culling_to_graph
Add the profile-approprate culling for the given material archetype to the graph.
build_gpu_cull_input
Build and upload the inputs into a buffer to be passed to GpuCuller::cull.
cull_cpu
Do all object culling on the CPU and upload the per-object data to the GPU.
draw_cpu_powered
Draw the given cpu draw calls.
draw_gpu_powered
Draw the given indirect call.