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 | ||
| 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
(
FRHICommandListBase& RHICmdList, |
||
| FAllocation | AllocateHalf
(
FRHICommandListBase& RHICmdList, |
||
| FAllocation | AllocateInt32
(
FRHICommandListBase& RHICmdList, |
||
| FAllocation | AllocateUInt32
(
FRHICommandListBase& RHICmdList, |
||
| void | Cleanup () |
||
| void | Commit
(
FRHICommandListBase& 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. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FAllocation | AllocateFloat
(
uint32 Num |
AllocateFloat now requires a command list. | |
| FAllocation | AllocateHalf
(
uint32 Num |
AllocateHalf now requires a command list. | |
| FAllocation | AllocateInt32
(
uint32 Num |
AllocateInt32 now requires a command list. | |
| FAllocation | AllocateUInt32
(
uint32 Num |
AllocateUInt32 now requires a command list. | |
| void | Commit () |
Commit now requires a command list. |