Navigation
API > API/Runtime > API/Runtime/RenderCore
Flags that control ConstructTexture(2D/2DArray/Volume/etc.)
| Name | EConstructTextureFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderUtils.h |
| Include Path | #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_SkipPostEdit = 0x80,
CTF_Default = CTF_Compress | CTF_SRGB,
}
Values
| Name | Remarks |
|---|---|
| CTF_Compress | Compress RGBA8 to DXT |
| CTF_DeferCompression | Don't actually compress until the package 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_SkipPostEdit | Don't call a post edit change on the texture. |
| CTF_Default | Default flags (maps to previous defaults to ConstructTexture2D) |