D3DWriteBlobToFile

Writes a memory blob to a file on disk.

Syntax

HRESULT D3DWriteBlobToFile(
         ID3DBlob *pBlob,
         LPCWSTR pFileName,
         BOOL bOverwrite
)  

Parameters

pBlob
Type: ID3DBlob *

[in] A pointer to a ID3DBlob interface that contains the memory blob to write to the file that the pFileName parameter specifies.

pFileName
Type: LPCWSTR 

[in] A pointer to a constant null-terminated string that contains the name of the file to which to write.

bOverwrite
Type: BOOL 

[in] A Boolean value that specifies whether to overwrite information in the pFileName file. TRUE specifies to overwrite information and FALSE specifies not to overwrite information.

Return value

Type: HRESULT 

Returns one of the Direct3D 11 return codes.

Remarks

Note

The D3dcompiler_44.dll or later version of the file contains the D3DWriteBlobToFile compiler function.

Requirements

Header: Declared in d3dcompiler.h.

Library: Use d3d11.lib.