ETextureRenderTargetFormat

Subset of EPixelFormat exposed to [UTextureRenderTarget2D](API\Runtime\Engine\Engine\UTextureRenderTarget2D)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTarget2D.h

Include

#include "Engine/TextureRenderTarget2D.h"

Syntax

enum ETextureRenderTargetFormat
{
    RTF_R8,
    RTF_RG8,
    RTF_RGBA8,
    RTF_RGBA8_SRGB,
    RTF_R16f,
    RTF_RG16f,
    RTF_RGBA16f,
    RTF_R32f,
    RTF_RG32f,
    RTF_RGBA32f,
    RTF_RGB10A2,
}

Values

Name

Description

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].

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

Remarks

Subset of EPixelFormat exposed to UTextureRenderTarget2D

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