Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FRenderResource
- FGlobalDynamicReadBuffer
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/DynamicBufferAllocator.h |
| Include | #include "DynamicBufferAllocator.h" |
Syntax
class FGlobalDynamicReadBuffer : public FRenderResource
Remarks
A system for dynamically allocating GPU memory for rendering. Note 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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDynamicReadBufferPool * | FloatBufferPool | ||
| FDynamicReadBufferPool * | HalfBufferPool | The pools of read buffers from which allocations are made. | |
| FDynamicReadBufferPool * | Int32BufferPool | ||
| UE::FMutex | Mutex | ||
| FRHICommandListBase * | RHICmdList | ||
| size_t | TotalAllocatedSinceLastCommit | A total of all allocations made since the last commit. Used to alert about spikes in memory usage. | |
| FDynamicReadBufferPool * | UInt32BufferPool |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FAllocation | AllocateFloat
(
uint32 Num |
||
| FAllocation | AllocateHalf
(
uint32 Num |
||
| FAllocation | AllocateInt32
(
uint32 Num |
||
| FAllocation | AllocateInternal
(
FDynamicReadBufferPool* BufferPool, |
||
| FAllocation | AllocateUInt32
(
uint32 Num |
||
| void | Cleanup () |
||
| void | Commit () |
||
| void | Commit
(
FRHICommandListImmediate& RHICmdList |
Commits allocated memory to the GPU. | |
| void | IncrementTotalAllocations
(
uint32 Num |
||
| bool | Returns true if log statements should be made because we exceeded GMaxVertexBytesAllocatedPerFrame |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | |
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAllocation | Information regarding an allocation from this buffer. |