Navigation
API > API/Runtime > API/Runtime/ImageCore > API/Runtime/ImageCore/FDDSFile
Description
Create an empty DDS structure (for writing DDS files typically)
InDimension is [1,3] (1D,2D,3D) InWidth/InHeight are for the top mip. Cubemaps must be square. InDepth is only used for 3D textures, must be 1 otherwise. InMipCount <= MAX_MIPS_SUPPORTED. InArraySize number of textures provided - must be multiple of 6 for cubemaps (CREATE_FLAG_CUBEMAP)
Note for texture arrays the mip data pointers are expecting the entire mip chain for one texture before moving to the next
On error, returns nullptr. If a non-null OutError is supplied, error information is written there.
| Name | CreateEmpty |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageCore/Public/DDSFile.h |
| Include Path | #include "DDSFile.h" |
| Source | /Engine/Source/Runtime/ImageCore/Private/DDSFile.cpp |
static FDDSFile * CreateEmpty
(
int32 InDimension,
uint32 InWidth,
uint32 InHeight,
uint32 InDepth,
uint32 InMipCount,
uint32 InArraySize,
EDXGIFormat InFormat,
uint32 InCreateFlags,
EDDSError * OutError
)