Navigation
API > API/Runtime > API/Runtime/RenderCore
The reference to a pooled render target, use like this: TRefCountPtr
| Name | FPooledRenderTarget |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderTargetPool.h |
| Include Path | #include "RenderTargetPool.h" |
Syntax
struct FPooledRenderTarget : public IPooledRenderTarget
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPooledRenderTarget
(
FRHITexture* Texture, |
RenderTargetPool.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Desc | FPooledRenderTargetDesc | All necessary data to create the render target | RenderTargetPool.h | |
| NumRefs | int32 | For pool management (only if NumRef == 0 the element can be reused) | RenderTargetPool.h | |
| PooledTexture | FRDGPooledTexture | Pooled textures for use with RDG. | RenderTargetPool.h | |
| RenderTargetPool | FRenderTargetPool * | Pointer back to the pool for render targets which are actually pooled, otherwise NULL. | RenderTargetPool.h | |
| UnusedForNFrames | uint32 | Allows to defer the release to save performance on some hardware (DirectX) | RenderTargetPool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 GetUnusedForNFrames() |
RenderTargetPool.h |
Overridden from IPooledRenderTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint32 AddRef() |
Refcounting. | RenderTargetPool.h | |
virtual uint32 ComputeMemorySize() |
Only for debugging purpose | RenderTargetPool.h | |
virtual const FPooledRenderTargetDesc & GetDesc() |
Get all the data that is needed to create the render target. | RenderTargetPool.h | |
virtual uint32 GetRefCount() |
RenderTargetPool.h | ||
virtual bool IsFree() |
Checks if the reference count indicated that the rendertarget is unused and can be reused. | RenderTargetPool.h | |
virtual bool IsTracked() |
Returns if the render target is tracked by a pool. | RenderTargetPool.h | |
virtual uint32 Release() |
RenderTargetPool.h |