Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/GPUSortManager.h |
Include |
#include "GPUSortManager.h" |
struct FDynamicValueBuffer
Encapsulates the idea of a growable FValueBuffer, that dynamically change in size depending on requirements. What is specific here is that even after being grown, previous references to the smaller version are still valid for a frame. This requirement comes client system registering GPU sort tasks in InitViews(), before the total size required for the frame is known.
Name | Description | ||
---|---|---|---|
|
CurrentSortBatchId |
The sort batch using this buffer for this frame. |
|
|
LastSortBatchFlags |
The last batch flags that used this buffer. Used to help rebind the same SortBatch between frames. |
|
|
NumFramesRequiringShrinking |
A counter used to delay shrinking by several frames. |
|
|
ValueBuffers |
The current list of increasingly bigger value buffers. |
Name | Description | |
---|---|---|
|
~FDynamicValueBuffer() |
Name | Description | ||
---|---|---|---|
|
Allocate ( |
Allocate some space into the buffer for this frame. |
|
|
GetAllocatedCount() |
Get the buffer allocated size . |
|
|
GetUsedCount() |
Get currently used size for this frame. |
|
|
ReleaseRHI() |
Release resources |
|
|
SkrinkAndReset ( |
Shrinks the buffer after it has been used this frame if applicable. |