D3D11_SHADER_DESC Structure

Describes a shader.

Syntax

typedef struct D3D11_SHADER_DESC {
  UINT                               Version;
  LPCSTR                             Creator;
  UINT                               Flags;
  UINT                               ConstantBuffers;
  UINT                               BoundResources;
  UINT                               InputParameters;
  UINT                               OutputParameters;
  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                               CutInstructionCount;
  UINT                               EmitInstructionCount;
  D3D10_PRIMITIVE_TOPOLOGY           GSOutputTopology;
  UINT                               GSMaxOutputVertexCount;
  D3D11_PRIMITIVE                    InputPrimitive;
  UINT                               PatchConstantParameters;
  UINT                               cGSInstanceCount;
  UINT                               cControlPoints;
  D3D11_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive;
  D3D11_TESSELLATOR_PARTITIONING     HSPartitioning;
  D3D11_TESSELLATOR_DOMAIN           TessellatorDomain;
  UINT                               cBarrierInstructions;
  UINT                               cInterlockedInstructions;
  UINT                               cTextureStoreInstructions;
} D3D11_SHADER_DESC;

Mitglieder

  • Version
    Typ: UINT

    Shader version.

  • Creator
    Typ: LPCSTR

    The name of the originator of the shader.

  • Flags
    Typ: UINT

    Shader compilation/parse flags.

  • ConstantBuffers
    Typ: UINT

    The number of shader-constant buffers.

  • BoundResources
    Typ: UINT

    The number of resource (textures and buffers) bound to a shader.

  • InputParameters
    Typ: UINT

    The number of parameters in the input signature.

  • OutputParameters
    Typ: UINT

    The number of parameters in the output signature.

  • InstructionCount
    Typ: UINT

    The number of intermediate-language instructions in the compiled shader.

  • TempRegisterCount
    Typ: UINT

    The number of temporary registers in the compiled shader.

  • TempArrayCount
    Typ: UINT

    Number of temporary arrays used.

  • DefCount
    Typ: UINT

    Number of constant defines.

  • DclCount
    Typ: UINT

    Number of declarations (input + output).

  • TextureNormalInstructions
    Typ: UINT

    Number of non-categorized texture instructions.

  • TextureLoadInstructions
    Typ: UINT

    Number of texture load instructions

  • TextureCompInstructions
    Typ: UINT

    Number of texture comparison instructions

  • TextureBiasInstructions
    Typ: UINT

    Number of texture bias instructions

  • TextureGradientInstructions
    Typ: UINT

    Number of texture gradient instructions.

  • FloatInstructionCount
    Typ: UINT

    Number of floating point arithmetic instructions used.

  • IntInstructionCount
    Typ: UINT

    Number of signed integer arithmetic instructions used.

  • UintInstructionCount
    Typ: UINT

    Number of unsigned integer arithmetic instructions used.

  • StaticFlowControlCount
    Typ: UINT

    Number of static flow control instructions used.

  • DynamicFlowControlCount
    Typ: UINT

    Number of dynamic flow control instructions used.

  • MacroInstructionCount
    Typ: UINT

    Number of macro instructions used.

  • ArrayInstructionCount
    Typ: UINT

    Number of array instructions used.

  • CutInstructionCount
    Typ: UINT

    Number of cut instructions used.

  • EmitInstructionCount
    Typ: UINT

    Number of emit instructions used.

  • GSOutputTopology
    Typ: D3D10_PRIMITIVE_TOPOLOGY

    The D3D10_PRIMITIVE_TOPOLOGY, which represents the shader output topology.

  • GSMaxOutputVertexCount
    Typ: UINT

    Geometry shader maximum output vertex count.

  • InputPrimitive
    Typ: D3D11_PRIMITIVE

    The D3D11_PRIMITIVE-typed value that represents the input primitive for a geometry shader or hull shader.

  • PatchConstantParameters
    Typ: UINT

    Number of parameters in the patch-constant signature.

  • cGSInstanceCount
    Typ: UINT

    Number of geometry shader instances.

  • cControlPoints
    Typ: UINT

    Number of control points in the hull shader and domain shader.

  • HSOutputPrimitive
    Typ: D3D11_TESSELLATOR_OUTPUT_PRIMITIVE

    The D3D11_TESSELLATOR_OUTPUT_PRIMITIVE, which represents the tessellator output-primitive type.

  • HSPartitioning
    Typ: D3D11_TESSELLATOR_PARTITIONING

    The D3D11_TESSELLATOR_PARTITIONING, which represents the tessellator partitioning mode.

  • TessellatorDomain
    Typ: D3D11_TESSELLATOR_DOMAIN

    The D3D11_TESSELLATOR_DOMAIN, which represents the tessellator domain.

  • cBarrierInstructions
    Typ: UINT

    Number of barrier instructions in a compute shader.

  • cInterlockedInstructions
    Typ: UINT

    Number of interlocked instructions in a compute shader.

  • cTextureStoreInstructions
    Typ: UINT

    Number of texture writes in a compute shader.

Hinweise

A shader is written in HLSL and compiled into an intermediate language by the HLSL compiler. The shader description returns information about the compiled shader. Get a shader description by calling ID3D11ShaderReflection::GetDesc.

Anforderungen

Header

D3D11Shader.h

Siehe auch

Shader Structures