UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextureRenderTarget2D.h File Reference
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "RenderUtils.h"
#include "Engine/TextureRenderTarget.h"
#include "TextureRenderTarget2D.generated.h"

Go to the source code of this file.

Classes

class  UTextureRenderTarget2D
 

Enumerations

enum  ETextureRenderTargetFormat : int {
  RTF_R8 , RTF_RG8 , RTF_RGBA8 , RTF_RGBA8_SRGB ,
  RTF_R16f , RTF_RG16f , RTF_RGBA16f , RTF_R32f ,
  RTF_RG32f , RTF_RGBA32f , RTF_RGB10A2
}
 
enum class  ETextureRenderTargetSampleCount : uint8 {
  UMETA =(DisplayName = "MSAAx1") , UMETA =(DisplayName = "MSAAx2") , UMETA =(DisplayName = "MSAAx4") , UMETA =(DisplayName = "MSAAx8") ,
  RTSC_MAX
}
 

Functions

EPixelFormat GetPixelFormatFromRenderTargetFormat (ETextureRenderTargetFormat RTFormat)
 
int32 GetNumFromRenderTargetSampleCount (ETextureRenderTargetSampleCount InSampleCount)
 

Variables

ENGINE_API int32 GTextureRenderTarget2DMaxSizeX
 
ENGINE_API int32 GTextureRenderTarget2DMaxSizeY
 

Enumeration Type Documentation

◆ ETextureRenderTargetFormat

Subset of EPixelFormat exposed to UTextureRenderTarget2D

Enumerator
RTF_R8 

R channel, 8 bit per channel fixed point, range [0, 1].

RTF_RG8 

RG channels, 8 bit per channel fixed point, range [0, 1].

RTF_RGBA8 

RGBA channels, 8 bit per channel fixed point, range [0, 1].

RTF_RGBA8_SRGB 

RGBA channels, 8 bit per channel fixed point, range [0, 1]. RGB is encoded with sRGB gamma curve. A is always stored as linear.

RTF_R16f 

R channel, 16 bit per channel floating point, range [-65504, 65504]

RTF_RG16f 

RG channels, 16 bit per channel floating point, range [-65504, 65504]

RTF_RGBA16f 

RGBA channels, 16 bit per channel floating point, range [-65504, 65504]

RTF_R32f 

R channel, 32 bit per channel floating point, range [-3.402823 x 10^38, 3.402823 x 10^38]

RTF_RG32f 

RG channels, 32 bit per channel floating point, range [-3.402823 x 10^38, 3.402823 x 10^38]

RTF_RGBA32f 

RGBA channels, 32 bit per channel floating point, range [-3.402823 x 10^38, 3.402823 x 10^38]

RTF_RGB10A2 

RGBA channels, 10 bit per channel fixed point and 2 bit of alpha

◆ ETextureRenderTargetSampleCount

Enumerator
UMETA 
UMETA 
UMETA 
UMETA 
RTSC_MAX 

Function Documentation

◆ GetNumFromRenderTargetSampleCount()

int32 GetNumFromRenderTargetSampleCount ( ETextureRenderTargetSampleCount  InSampleCount)
inline

◆ GetPixelFormatFromRenderTargetFormat()

EPixelFormat GetPixelFormatFromRenderTargetFormat ( ETextureRenderTargetFormat  RTFormat)
inline

Variable Documentation

◆ GTextureRenderTarget2DMaxSizeX

ENGINE_API int32 GTextureRenderTarget2DMaxSizeX
extern

◆ GTextureRenderTarget2DMaxSizeY

ENGINE_API int32 GTextureRenderTarget2DMaxSizeY
extern