D3D11_FUNCTION_DESC structure (d3d11shader.h)

Describes a function.

Syntax

typedef struct _D3D11_FUNCTION_DESC {
  UINT              Version;
  LPCSTR            Creator;
  UINT              Flags;
  UINT              ConstantBuffers;
  UINT              BoundResources;
  UINT              InstructionCount;
  UINT              TempRegisterCount;
  UINT              TempArrayCount;
  UINT              DefCount;
  UINT              DclCount;
  UINT              TextureNormalInstructions;
  UINT              TextureLoadInstructions;
  UINT              TextureCompInstructions;
  UINT              TextureBiasInstructions;
  UINT              TextureGradientInstructions;
  UINT              FloatInstructionCount;
  UINT              IntInstructionCount;
  UINT              UintInstructionCount;
  UINT              StaticFlowControlCount;
  UINT              DynamicFlowControlCount;
  UINT              MacroInstructionCount;
  UINT              ArrayInstructionCount;
  UINT              MovInstructionCount;
  UINT              MovcInstructionCount;
  UINT              ConversionInstructionCount;
  UINT              BitwiseInstructionCount;
  D3D_FEATURE_LEVEL MinFeatureLevel;
  UINT64            RequiredFeatureFlags;
  LPCSTR            Name;
  INT               FunctionParameterCount;
  BOOL              HasReturn;
  BOOL              Has10Level9VertexShader;
  BOOL              Has10Level9PixelShader;
} D3D11_FUNCTION_DESC;

Members

Version

Type: UINT

The shader version.

Creator

Type: LPCSTR

The name of the originator of the function.

Flags

Type: UINT

A combination of D3DCOMPILE Constants that are combined by using a bitwise OR operation. The resulting value specifies shader compilation and parsing.

ConstantBuffers

Type: UINT

The number of constant buffers for the function.

BoundResources

Type: UINT

The number of bound resources for the function.

InstructionCount

Type: UINT

The number of emitted instructions for the function.

TempRegisterCount

Type: UINT

The number of temporary registers used by the function.

TempArrayCount

Type: UINT

The number of temporary arrays used by the function.

DefCount

Type: UINT

The number of constant defines for the function.

DclCount

Type: UINT

The number of declarations (input + output) for the function.

TextureNormalInstructions

Type: UINT

The number of non-categorized texture instructions for the function.

TextureLoadInstructions

Type: UINT

The number of texture load instructions for the function.

TextureCompInstructions

Type: UINT

The number of texture comparison instructions for the function.

TextureBiasInstructions

Type: UINT

The number of texture bias instructions for the function.

TextureGradientInstructions

Type: UINT

The number of texture gradient instructions for the function.

FloatInstructionCount

Type: UINT

The number of floating point arithmetic instructions used by the function.

IntInstructionCount

Type: UINT

The number of signed integer arithmetic instructions used by the function.

UintInstructionCount

Type: UINT

The number of unsigned integer arithmetic instructions used by the function.

StaticFlowControlCount

Type: UINT

The number of static flow control instructions used by the function.

DynamicFlowControlCount

Type: UINT

The number of dynamic flow control instructions used by the function.

MacroInstructionCount

Type: UINT

The number of macro instructions used by the function.

ArrayInstructionCount

Type: UINT

The number of array instructions used by the function.

MovInstructionCount

Type: UINT

The number of mov instructions used by the function.

MovcInstructionCount

Type: UINT

The number of movc instructions used by the function.

ConversionInstructionCount

Type: UINT

The number of type conversion instructions used by the function.

BitwiseInstructionCount

Type: UINT

The number of bitwise arithmetic instructions used by the function.

MinFeatureLevel

Type: D3D_FEATURE_LEVEL

A D3D_FEATURE_LEVEL-typed value that specifies the minimum Direct3D feature level target of the function byte code.

RequiredFeatureFlags

Type: UINT64

A value that contains a combination of one or more shader requirements flags; each flag specifies a requirement of the shader. A default value of 0 means there are no requirements. For a list of values, see ID3D11ShaderReflection::GetRequiresFlags.

Name

Type: LPCSTR

The name of the function.

FunctionParameterCount

Type: INT

The number of logical parameters in the function signature, not including the return value.

HasReturn

Type: BOOL

Indicates whether the function returns a value. TRUE indicates it returns a value; otherwise, FALSE (it is a subroutine).

Has10Level9VertexShader

Type: BOOL

Indicates whether there is a Direct3D 10Level9 vertex shader blob. TRUE indicates there is a 10Level9 vertex shader blob; otherwise, FALSE.

Has10Level9PixelShader

Type: BOOL

Indicates whether there is a Direct3D 10Level9 pixel shader blob. TRUE indicates there is a 10Level9 pixel shader blob; otherwise, FALSE.

Requirements

Requirement Value
Header d3d11shader.h

See also

ID3D11FunctionReflection::GetDesc

Shader Structures