Module gpu_preprocessing

Source
Expand description

Batching functionality when GPU preprocessing is in use.

Structs§

BatchedInstanceBuffers
The GPU buffers holding the data needed to render batches.
BatchingPlugin
IndirectParameters
The wgpu indirect parameters structure.
IndirectParametersBuffer
The buffer containing the list of IndirectParameters, for draw commands.
PreprocessWorkItem
One invocation of the preprocessing shader: i.e. one mesh instance in a view.
PreprocessWorkItemBuffer
The buffer of GPU preprocessing work items for a single view.

Enums§

GpuPreprocessingSupport
Records whether GPU preprocessing and/or GPU culling are supported on the device.

Functions§

batch_and_prepare_binned_render_phase
Creates batches for a render phase that uses bins.
batch_and_prepare_sorted_render_phase
Batch the items in a sorted render phase, when GPU instance buffer building is in use. This means comparing metadata needed to draw each phase item and trying to combine the draws into a batch.
clear_batched_gpu_instance_buffers
A system that runs early in extraction and clears out all the BatchedInstanceBuffers for the frame.
delete_old_work_item_buffers
A system that removes GPU preprocessing work item buffers that correspond to deleted ViewTargets.
write_batched_instance_buffers
A system that writes all instance buffers to the GPU.
write_indirect_parameters_buffer