FTextureRenderTarget2DResource

[FTextureResource](API\Runtime\Engine\FTextureResource) type for 2D render target textures.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/TextureResource.h

Include

#include "TextureResource.h"

Syntax

class FTextureRenderTarget2DResource : public FTextureRenderTargetResource

Remarks

FTextureResource type for 2D render target textures.

Constructors

Name Description

Public function

FTextureRenderTarget2DResource

(
    const UTextureRenderTarget2D* ...
)

Constructor

Functions

Name Description

Public function

FLinearColor

 

GetClearColor()

Public function

FTexture2DRH...

 

GetTextureRHI()

Public function

FUnorderedAc...

 

GetUnorderedAccessViewRHI()

Protected function

void

 

Resize

(
    int32 NewSizeX,
    int32 NewSizeY
)

Overridden from FTextureRenderTargetResource

Name Description

Public function Virtual

void

 

ClampSize

(
    int32 SizeX,
    int32 SizeY
)

Clamp size of the render target resource to max values

Public function Virtual

FTextureRend...

 

GetTextureRenderTarget2DResource()

2D texture RT resource interface

Overridden from FTexture

Name Description

Public function Virtual Const

uint32

 

GetSizeX()

Returns the width of the texture in pixels.

Public function Virtual Const

uint32

 

GetSizeY()

Returns the height of the texture in pixels.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitDynamicRHI()

Initializes the dynamic RHI resource and/or RHI render target used by this resource.

Public function Virtual

void

 

ReleaseDynamicRHI()

Releases the dynamic RHI resource and/or RHI render target resources used by this resource.

Overridden from FRenderTarget

Name Description

Public function Virtual Const

float

 

GetDisplayGamma()

Render target resource should be sampled in linear color space

Public function Virtual Const

FIntPoint

 

GetSizeXY()

Properties.

Overridden from FDeferredUpdateResource

Name Description

Protected function Virtual

void

 

UpdateDeferredResource

(
    FRHICommandListImmediate& RHICmdLi...,
    bool bClearRenderTarget
)

Updates (resolves) the render target texture.