Writes a memory blob to a file on disk.
HRESULT D3DWriteBlobToFile(
ID3DBlob *pBlob,
LPCWSTR pFileName,
BOOL bOverwrite
)
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.
Type: HRESULT
Returns one of the Direct3D 11 return codes.
Note
The D3dcompiler_44.dll or later version of the file contains the D3DWriteBlobToFile compiler function.
Header: Declared in d3dcompiler.h.
Library: Use d3d11.lib.