D3DReflectLibrary function (d3dcompiler.h)
Creates a library-reflection interface from source data that contains an HLSL library of functions.
Syntax
HRESULT D3DReflectLibrary(
[in] LPCVOID pSrcData,
[in] SIZE_T SrcDataSize,
[in] REFIID riid,
[out] LPVOID *ppReflector
);
Parameters
[in] pSrcData
Type: LPCVOID
A pointer to source data as an HLSL library of functions.
[in] SrcDataSize
Type: SIZE_T
The size, in bytes, of the block of memory that pSrcData points to.
[in] riid
Type: REFIID
The reference GUID of the COM interface to use. For example, IID_ID3D11LibraryReflection.
[out] ppReflector
Type: LPVOID*
A pointer to a variable that receives a pointer to a library-reflection interface, ID3D11LibraryReflection.
Return value
Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the Direct3D 11 Return Codes.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3dcompiler.h |
Library | D3DCompiler.lib |
DLL | D3DCompiler_47.dll |