#include <InstanceCullingLoadBalancer.h>
|
| void | ReserveStorage (int32 NumBatches, int32 NumItems) |
| |
| void | Add (uint32 InstanceDataOffset, uint32 NumInstanceDataEntries, uint32 Payload) |
| |
| bool | IsEmpty () const |
| |
| FGPUData | Upload (FRDGBuilder &GraphBuilder, int32 NumGroupsPerBatch=1) |
| |
| FGPUData | UploadFinalized (FRDGBuilder &GraphBuilder, int32 NumGroupsPerBatch=1) const |
| |
| void | FinalizeBatches () |
| |
| FIntVector | GetWrappedCsGroupCount (int32 NumGroupsPerBatch=1) const |
| |
| const TArray< FPackedBatch, AllocatorType > & | GetBatches () const |
| |
| const TArray< FPackedItem, AllocatorType > & | GetItems () const |
| |
| uint32 | GetTotalNumInstances () const |
| |
| template<typename AllocatorType > |
| void | AppendData (const TInstanceCullingLoadBalancer< AllocatorType > &Other) |
| |
| bool | HasSingleInstanceItemsOnly () const |
| |
| FPackedBatch | PackBatch (uint32 FirstItem, uint32 NumItems) |
| |
| FPackedItem | PackItem (uint32 InstanceDataOffset, uint32 NumInstances, uint32 Payload, uint32 BatchPrefixSum) |
| |
| FGPUData | Upload (FRDGBuilder &GraphBuilder, TConstArrayView< FPackedBatch > Batches, TConstArrayView< FPackedItem > Items, ERDGInitialDataFlags RDGInitialDataFlags, int32 NumGroupsPerBatch) const |
| |
| FIntVector | GetWrappedCsGroupCount (TConstArrayView< FPackedBatch > Batches, int32 NumGroupsPerBatch) const |
| |
◆ AllocatorType
◆ Add()
Add a span of instances to be processed.
◆ AppendData()
◆ FinalizeBatches()
Call when finished adding work items to the balancer to flush any in-progress batches.
◆ GetBatches()
◆ GetItems()
◆ GetTotalNumInstances()
◆ GetWrappedCsGroupCount()
Returns a 3D group count that is large enough to generate one group per batch using FComputeShaderUtils::GetGroupCountWrapped. Use GetUnWrappedDispatchGroupId in the shader to retrieve the linear index. NOTE: NumGroupsPerBatch must be consistent with the value passed to Upload
◆ HasSingleInstanceItemsOnly()
◆ IsEmpty()
◆ ReserveStorage()
◆ Upload()
◆ UploadFinalized()
◆ CurrentBatchFirstItem
◆ CurrentBatchNumItems
◆ CurrentBatchPackedPrefixSum
◆ CurrentBatchPrefixSum
◆ Data
◆ TotalInstances
The documentation for this class was generated from the following file: