FTextureRenderTarget2DResource

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

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()

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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback