UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DDSFile.cpp File Reference
#include "DDSFile.h"
#include "Logging/LogMacros.h"

Classes

struct  UE::DDS::FDDSPixelFormat
 
struct  UE::DDS::FDDSHeaderWithMagic
 
struct  UE::DDS::FDDSHeaderDX10
 
struct  UE::DDS::FDXGIFormatName
 
struct  UE::DDS::FBitmaskToDXGI
 
struct  UE::DDS::FFOURCCToDXGI
 
struct  UE::DDS::FDXGIFormatInfo
 
struct  UE::DDS::FDXGIFormatRawFormatMapping
 

Namespaces

namespace  UE
 
namespace  UE::DDS
 

Macros

#define RGBFMT(name, id, bypu)   { EDXGIFormat::name, TEXT(#name) },
 
#define BCNFMT(name, id, bypu)   { EDXGIFormat::name, TEXT(#name) },
 
#define ODDFMT(name, id)   { EDXGIFormat::name, TEXT(#name) },
 
#define RGBFMT(name, id, bypu)   { EDXGIFormat::name, 1,1, bypu },
 
#define BCNFMT(name, id, bypu)   { EDXGIFormat::name, 4,4, bypu },
 
#define ODDFMT(name, id)
 

Functions

 DEFINE_LOG_CATEGORY_STATIC (LogDDSFile, Log, All)
 
constexpr uint32 UE::DDS::MakeFOURCC (uint32 a, uint32 b, uint32 c, uint32 d)
 
const TCHARUE::DDS::DXGIFormatGetName (EDXGIFormat fmt)
 
bool UE::DDS::DXGIFormatIsSRGB (EDXGIFormat Format)
 
bool UE::DDS::DXGIFormatHasLinearAndSRGBForm (EDXGIFormat Format)
 
EDXGIFormat UE::DDS::DXGIFormatRemoveSRGB (EDXGIFormat fmt)
 
EDXGIFormat UE::DDS::DXGIFormatAddSRGB (EDXGIFormat fmt)
 
int64 UE::DDS::GetDDSHeaderMaximalSize ()
 
int64 UE::DDS::GetDDSHeaderMinimalSize ()
 
ERawImageFormat::Type UE::DDS::DXGIFormatGetClosestRawFormat (EDXGIFormat fmt, bool *pIsExactMatch)
 
EDXGIFormat UE::DDS::DXGIFormatFromRawFormat (ERawImageFormat::Type RawFormat, EGammaSpace GammaSpace)
 

Variables

constexpr uint32 UE::DDS::DDSD_CAPS = 0x00000001
 
constexpr uint32 UE::DDS::DDSD_HEIGHT = 0x00000002
 
constexpr uint32 UE::DDS::DDSD_WIDTH = 0x00000004
 
constexpr uint32 UE::DDS::DDSD_PITCH = 0x00000008
 
constexpr uint32 UE::DDS::DDSD_PIXELFORMAT = 0x00001000
 
constexpr uint32 UE::DDS::DDSD_MIPMAPCOUNT = 0x00020000
 
constexpr uint32 UE::DDS::DDSD_DEPTH = 0x00800000
 
constexpr uint32 UE::DDS::DDPF_ALPHA = 0x00000002
 
constexpr uint32 UE::DDS::DDPF_FOURCC = 0x00000004
 
constexpr uint32 UE::DDS::DDPF_RGB = 0x00000040
 
constexpr uint32 UE::DDS::DDPF_LUMINANCE = 0x00020000
 
constexpr uint32 UE::DDS::DDPF_BUMPDUDV = 0x00080000
 
constexpr uint32 UE::DDS::DDSCAPS_COMPLEX = 0x00000008
 
constexpr uint32 UE::DDS::DDSCAPS_TEXTURE = 0x00001000
 
constexpr uint32 UE::DDS::DDSCAPS_MIPMAP = 0x00400000
 
constexpr uint32 UE::DDS::DDSCAPS2_CUBEMAP = 0x00000200
 
constexpr uint32 UE::DDS::DDSCAPS2_VOLUME = 0x00200000
 
constexpr uint32 UE::DDS::RESOURCE_DIMENSION_UNKNOWN = 0
 
constexpr uint32 UE::DDS::RESOURCE_DIMENSION_BUFFER = 1
 
constexpr uint32 UE::DDS::RESOURCE_DIMENSION_TEXTURE1D = 2
 
constexpr uint32 UE::DDS::RESOURCE_DIMENSION_TEXTURE2D = 3
 
constexpr uint32 UE::DDS::RESOURCE_DIMENSION_TEXTURE3D = 4
 
constexpr uint32 UE::DDS::RESOURCE_MISC_TEXTURECUBE = 0x00000004
 
constexpr uint32 UE::DDS::DDS_MAGIC = MakeFOURCC('D', 'D', 'S', ' ')
 
constexpr uint32 UE::DDS::DX10_MAGIC = MakeFOURCC('D', 'X', '1', '0')
 
FDXGIFormatRawFormatMapping UE::DDS::DXGIRawFormatMap []
 

Macro Definition Documentation

◆ BCNFMT [1/2]

#define BCNFMT (   name,
  id,
  bypu 
)    { EDXGIFormat::name, TEXT(#name) },

◆ BCNFMT [2/2]

#define BCNFMT (   name,
  id,
  bypu 
)    { EDXGIFormat::name, 4,4, bypu },

◆ ODDFMT [1/2]

#define ODDFMT (   name,
  id 
)    { EDXGIFormat::name, TEXT(#name) },

◆ ODDFMT [2/2]

#define ODDFMT (   name,
  id 
)

◆ RGBFMT [1/2]

#define RGBFMT (   name,
  id,
  bypu 
)    { EDXGIFormat::name, TEXT(#name) },

◆ RGBFMT [2/2]

#define RGBFMT (   name,
  id,
  bypu 
)    { EDXGIFormat::name, 1,1, bypu },

Function Documentation

◆ DEFINE_LOG_CATEGORY_STATIC()

DEFINE_LOG_CATEGORY_STATIC ( LogDDSFile  ,
Log  ,
All   
)