Module no_gpu_preprocessing

Source
Expand description

Batching functionality when GPU preprocessing isn’t in use.

Structs§

BatchedInstanceBuffer
The GPU buffers holding the data needed to render batches.

Functions§

batch_and_prepare_binned_render_phase
Creates batches for a render phase that uses bins, when GPU batch data building isn’t in use.
batch_and_prepare_sorted_render_phase
Batch the items in a sorted render phase, when GPU instance buffer building isn’t in use. This means comparing metadata needed to draw each phase item and trying to combine the draws into a batch.
clear_batched_cpu_instance_buffers
A system that clears out the BatchedInstanceBuffer for the frame.
write_batched_instance_buffer
Writes the instance buffer data to the GPU.