GetMetadataFromDDSMemory

Returns the texture metadata from a file image stored in a memory buffer.

Syntax

HRESULT GetMetadataFromDDSMemory(
         LPCVOID pSource,
         size_t size,
         DWORD flags,
         TexMetadata &metadata
)  

Parameters

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 

[out] Address of a TexMetadata structure.

Return value

Type: HRESULT 

Success or error code.

Requirements

Header: Declared in directxtex.h.