Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Shader library code contains metadata that can be inspected using the library-reflection APIs, ID3D11LibraryReflection.

Note  The D3dcompiler_47.dll or later version of the DLL contains the D3DReflectLibrary function.

Windows Phone 8.1: This API is supported.

Requirements

Header

D3Dcompiler.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

ID3D11LibraryReflection

 

 

Community Additions

Show:
© 2014 Microsoft