GetMetadataFromDDSFile

Returns the texture metadata from a file.

Syntax

HRESULT GetMetadataFromDDSFile(
         LPCWSTR szFile,
         DWORD flags,
         TexMetadata &metadata
)  

Parameters

szFile
Type: LPCWSTR 

[in] Source file.

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.