Reads data from a buffer into an ID3DBlob.
HRESULT D3DReadBufferToBlob(
const unsigned char *pBuffer,
ULARGE_INTEGER uBytes,
ID3DBlob **ppContents
)
pBuffer
Type: unsigned char *
[in] The data buffer to read from.
uBytes
Type: ULARGE_INTEGER
[in] The number of bytes to read.
ppContents
Type: ID3DBlob **
[out] A pointer to a variable that receives a pointer to the ID3DBlob interface that contains information read from the buffer. You can use this ID3DBlob interface to access the file information and pass it to other compiler functions.
Type: HRESULT
Returns one of the following Direct3D 10 Return Codes.
Header: Declared in d3dcompiler.h.
Library: Use d3d11.lib.