Navigation
API > API/Runtime > API/Runtime/RHI
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHITransientResourceAllocator.h |
| Include | #include "RHITransientResourceAllocator.h" |
Syntax
class FRHITransientAllocationFences
Remarks
This data structure contains fence values used for allocating / deallocating transient memory regions for transient resources. A memory region can be re-used if the deallocation fences from the discarding resource and the allocation fences for the acquiring resource are not executing simultaneously on both the graphics | async compute pipe on the GPU timeline.
Allocation events are always on a single pipeline, while deallocation events can happen on multiple pipelines at the same time. Async compute is represented using three fence values: one for the async compute pipe, and two for the fork / join points on the graphics pipe. If fences are active on both pipes at the same time, the graphics fence must be contained within the async compute fork / join region.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Contains
(
const FRHITransientAllocationFences& Discard, |
Returns whether two regions described by the discard and acquire fences contain each other. If they do, that means the memory would being used by both pipes simultaneously and cannot be aliased. | |
| uint32 | GetAcquireFence
(
const FRHITransientAllocationFences& Discard, |
Returns the fence at which the Acquire operation can occur for the given pair of resources transitioning from Discard -> Acquire. | |
| uint32 | |||
| bool | |||
| void | SetAsyncCompute
(
uint32 InAsyncCompute, |
||
| void | SetGraphics
(
uint32 InGraphics |
Constants
| Name | Description |
|---|---|
| Invalid |