UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PixelFormat.cpp File Reference
#include "PixelFormat.h"
#include "Math/IntVector.h"

Classes

struct  FValidatePixelFormats
 

Macros

#define CASE_ENUM_TO_TEXT(txt)   case txt: return TEXT(#txt);
 
#define TEXT_TO_ENUM(eVal, txt)   if (FCString::Stricmp(TEXT(#eVal), txt) == 0) return eVal;
 
#define TEXT_TO_PIXELFORMAT(f)   TEXT_TO_ENUM(f, InPixelFormatStr);
 

Functions

const TCHARGetPixelFormatString (EPixelFormat InPixelFormat)
 
EPixelFormat GetPixelFormatFromString (const TCHAR *InPixelFormatStr)
 

Variables

FPixelFormatInfo GPixelFormats [PF_MAX]
 

Macro Definition Documentation

◆ CASE_ENUM_TO_TEXT

#define CASE_ENUM_TO_TEXT (   txt)    case txt: return TEXT(#txt);

Helper functions for text output of texture properties...

◆ TEXT_TO_ENUM

#define TEXT_TO_ENUM (   eVal,
  txt 
)    if (FCString::Stricmp(TEXT(#eVal), txt) == 0) return eVal;

◆ TEXT_TO_PIXELFORMAT

#define TEXT_TO_PIXELFORMAT (   f)    TEXT_TO_ENUM(f, InPixelFormatStr);

Function Documentation

◆ GetPixelFormatFromString()

EPixelFormat GetPixelFormatFromString ( const TCHAR InPixelFormatStr)

string to enum (not case sensitive) Note this is not the FPixelFormatInfo::Name

Parameters
InPixelFormatStre.g. "PF_B8G8R8A8", must not not be 0

◆ GetPixelFormatString()

const TCHAR * GetPixelFormatString ( EPixelFormat  InPixelFormat)

enum to string Note this is not the FPixelFormatInfo::Name

Returns
e.g. "PF_B8G8R8A8"

Variable Documentation

◆ GPixelFormats

FPixelFormatInfo GPixelFormats[PF_MAX]