Windows apps
Collapse the table of content
Expand the table of content
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.

ID3D11ShaderReflection interface

A shader-reflection interface accesses shader information.

Members

The ID3D11ShaderReflection interface inherits from the IUnknown interface. ID3D11ShaderReflection also has these types of members:

Methods

The ID3D11ShaderReflection interface has these methods.

MethodDescription
GetBitwiseInstructionCount

Gets the number of bitwise instructions.

GetConstantBufferByIndex

Get a constant buffer by index.

GetConstantBufferByName

Get a constant buffer by name.

GetConversionInstructionCount

Gets the number of conversion instructions.

GetDesc

Get a shader description.

GetGSInputPrimitive

Gets the geometry-shader input-primitive description.

GetInputParameterDesc

Get an input-parameter description for a shader.

GetMinFeatureLevel

Gets the minimum feature level.

GetMovcInstructionCount

Gets the number of Movc instructions.

GetMovInstructionCount

Gets the number of Mov instructions.

GetNumInterfaceSlots

Gets the number of interface slots in a shader.

GetOutputParameterDesc

Get an output-parameter description for a shader.

GetPatchConstantParameterDesc

Get a patch-constant parameter description for a shader.

GetRequiresFlags

Gets a group of flags that indicates the requirements of a shader.

GetResourceBindingDesc

Get a description of how a resource is bound to a shader.

GetResourceBindingDescByName

Get a description of how a resource is bound to a shader.

GetThreadGroupSize

Retrieves the sizes, in units of threads, of the X, Y, and Z dimensions of the shader's thread-group grid.

GetVariableByName

Gets a variable by name.

IsSampleFrequencyShader

Indicates whether a shader is a sample frequency shader.

 

Remarks

An ID3D11ShaderReflection interface can be retrieved for a shader by using D3DReflect. The following code illustrates retrieving a ID3D11ShaderReflection from a shader.


pd3dDevice->CreatePixelShader( pPixelShaderBuffer->GetBufferPointer(),
                               pPixelShaderBuffer->GetBufferSize(), g_pPSClassLinkage, &g_pPixelShader );

ID3D11ShaderReflection* pReflector = NULL; 
D3DReflect( pPixelShaderBuffer->GetBufferPointer(), pPixelShaderBuffer->GetBufferSize(), 
            IID_ID3D11ShaderReflection, (void**) &pReflector);

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

D3D11Shader.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

IUnknown
Shader Interfaces

 

 

Show:
© 2017 Microsoft