EConstructTextureFlags

Flags that control ConstructTexture2D

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderUtils.h

Include

#include "RenderUtils.h"

Syntax

enum EConstructTextureFlags
{
    CTF_Compress              = 0x01,
    CTF_DeferCompression      = 0x02,
    CTF_SRGB                  = 0x04,
    CTF_AllowMips             = 0x08,
    CTF_ForceOneBitAlpha      = 0x10,
    CTF_RemapAlphaAsMasked    = 0x20,
    CTF_ForceOpaque           = 0x40,
    CTF_Default               = CTF_Compress | CTF_SRGB,
}

Values

Name

Description

CTF_Compress

Compress RGBA8 to DXT

CTF_DeferCompression

Don't actually compress until the pacakge is saved

CTF_SRGB

Enable SRGB on the texture

CTF_AllowMips

Generate mipmaps for the texture

CTF_ForceOneBitAlpha

Use DXT1a to get 1 bit alpha but only 4 bits per pixel (note: color of alpha'd out part will be black)

CTF_RemapAlphaAsMasked

When rendering a masked material, the depth is in the alpha, and anywhere not rendered will be full depth, which should actually be alpha of 0, and anything else is alpha of 255

CTF_ForceOpaque

Ensure the alpha channel of the texture is opaque white (255).

CTF_Default

Default flags (maps to previous defaults to ConstructTexture2D)

Remarks

Flags that control ConstructTexture2D

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss