D3DReflectLibrary function

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 WINAPI D3DReflectLibrary(
  _In_  LPCVOID pSrcData,
  _In_  SIZE_T  SrcDataSize,
  _In_  REFIID  riid,
  _Out_ LPVOID  *ppReflector
);

Parameters

pSrcData [in]

Type: LPCVOID

A pointer to source data as an HLSL library of functions.

SrcDataSize [in]

Type: SIZE_T

The size, in bytes, of the block of memory that pSrcData points to.

riid [in]

Type: REFIID

The reference GUID of the COM interface to use. For example, IID_ID3D11LibraryReflection.

ppReflector [out]

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.

Remarks

Requirements

Header

D3Dcompiler.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

Functions
ID3D11LibraryReflection

 

 

Show: