D3DReflectLibrary function (d3dcompiler.h)

Creates a library-reflection interface from source data that contains an HLSL library of functions.

Note  This function is part of the HLSL shader linking technology that you can use on all Direct3D 11 platforms to create precompiled HLSL functions, package them into libraries, and link them into full shaders at run time.

 

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

See also

Functions

ID3D11LibraryReflection