Module bevy_render::batching::gpu_preprocessing
source · Expand description
Batching functionality when GPU preprocessing is in use.
Structs§
- The GPU buffers holding the data needed to render batches.
- The
wgpu
indirect parameters structure. - The buffer containing the list of
IndirectParameters
, for draw commands. - One invocation of the preprocessing shader: i.e. one mesh instance in a view.
- The buffer of GPU preprocessing work items for a single view.
Enums§
- Records whether GPU preprocessing and/or GPU culling are supported on the device.
Functions§
- Creates batches for a render phase that uses bins.
- 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.
- A system that runs early in extraction and clears out all the
BatchedInstanceBuffers
for the frame. - A system that removes GPU preprocessing work item buffers that correspond to deleted
ViewTarget
s. - A system that writes all instance buffers to the GPU.