Loads a .DDS file from an image in a memory buffer.
HRESULT LoadFromDDSMemory(
LPCVOID pSource,
size_t size,
DWORD flags,
TexMetadata *metadata,
ScratchImage &image
)
pSource
Type: LPCVOID
[in] Pointer to a memory buffer.
size
Type: size_t
[in] Size of the memory buffer.
flags
Type: DWORD
[in] One or more flags from the DDS_FLAGS enumeration.
metadata
Type: TexMetadata *
Pointer to a TexMetadata structure.
image
Type: ScratchImage
[out] Pointer to a ScratchImage class instance.
Type: HRESULT
Header: Declared in directxtex.h.