| FRenderResource
|
Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/DynamicBufferAllocator.h |
Include |
#include "DynamicBufferAllocator.h" |
class FGlobalDynamicReadBuffer : public FRenderResource
A system for dynamically allocating GPU memory for rendering.
that this must derive from FRenderResource so that we can safely free the shader resource views for OpenGL and other platforms. If we wait until the module is shutdown, the renderer RHI will have already been destroyed and we can execute code on invalid data. By making ourself a render resource, we clean up immediately before the renderer dies.
Name | Description | ||
---|---|---|---|
|
FDynamicReadBuf... |
FloatBufferPool |
|
|
FDynamicReadBuf... |
HalfBufferPool |
The pools of read buffers from which allocations are made. |
|
FDynamicReadBuf... |
Int32BufferPool |
|
|
size_t |
TotalAllocatedSinceLastCommit |
A total of all allocations made since the last commit. Used to alert about spikes in memory usage. |
Name | Description | |
---|---|---|
|
FGlobalDynamicReadBuffer() |
Name | Description | |
---|---|---|
|
~FGlobalDynamicReadBuffer() |
Name | Description | ||
---|---|---|---|
|
AllocateFloat ( |
||
|
AllocateHalf ( |
||
|
AllocateInt32 ( |
||
|
Cleanup() |
||
|
Commit() |
Commits allocated memory to the GPU. |
|
|
IncrementTotalAllocations ( |
||
|
IsRenderAlarmLoggingEnabled() |
Returns true if log statements should be made because we exceeded GMaxVertexBytesAllocatedPerFrame |
Name | Description | ||
---|---|---|---|
|
InitRHI() |
Initializes the RHI resources used by this resource. |
|
|
ReleaseRHI() |
Releases the RHI resources used by this resource. |
Name |
Description |
|
---|---|---|
|
FAllocation |
Information regarding an allocation from this buffer. |