Expand description
Batching functionality when GPU preprocessing is in use.
Structs§
- Batched
Instance Buffers - The GPU buffers holding the data needed to render batches.
- Batching
Plugin - Indirect
Parameters - The
wgpu
indirect parameters structure. - Indirect
Parameters Buffer - The buffer containing the list of
IndirectParameters
, for draw commands. - Preprocess
Work Item - One invocation of the preprocessing shader: i.e. one mesh instance in a view.
- Preprocess
Work Item Buffer - The buffer of GPU preprocessing work items for a single view.
Enums§
- GpuPreprocessing
Support - 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
ViewTarget
s. - write_
batched_ instance_ buffers - A system that writes all instance buffers to the GPU.
- write_
indirect_ parameters_ buffer