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: UINTShader version.
Creator
Typ: LPCSTRThe name of the originator of the shader.
Flags
Typ: UINTShader compilation/parse flags.
ConstantBuffers
Typ: UINTThe number of shader-constant buffers.
BoundResources
Typ: UINTThe number of resource (textures and buffers) bound to a shader.
InputParameters
Typ: UINTThe number of parameters in the input signature.
OutputParameters
Typ: UINTThe number of parameters in the output signature.
InstructionCount
Typ: UINTThe number of intermediate-language instructions in the compiled shader.
TempRegisterCount
Typ: UINTThe number of temporary registers in the compiled shader.
TempArrayCount
Typ: UINTNumber of temporary arrays used.
DefCount
Typ: UINTNumber of constant defines.
DclCount
Typ: UINTNumber of declarations (input + output).
TextureNormalInstructions
Typ: UINTNumber of non-categorized texture instructions.
TextureLoadInstructions
Typ: UINTNumber of texture load instructions
TextureCompInstructions
Typ: UINTNumber of texture comparison instructions
TextureBiasInstructions
Typ: UINTNumber of texture bias instructions
TextureGradientInstructions
Typ: UINTNumber of texture gradient instructions.
FloatInstructionCount
Typ: UINTNumber of floating point arithmetic instructions used.
IntInstructionCount
Typ: UINTNumber of signed integer arithmetic instructions used.
UintInstructionCount
Typ: UINTNumber of unsigned integer arithmetic instructions used.
StaticFlowControlCount
Typ: UINTNumber of static flow control instructions used.
DynamicFlowControlCount
Typ: UINTNumber of dynamic flow control instructions used.
MacroInstructionCount
Typ: UINTNumber of macro instructions used.
ArrayInstructionCount
Typ: UINTNumber of array instructions used.
CutInstructionCount
Typ: UINTNumber of cut instructions used.
EmitInstructionCount
Typ: UINTNumber of emit instructions used.
GSOutputTopology
Typ: D3D10_PRIMITIVE_TOPOLOGYThe D3D10_PRIMITIVE_TOPOLOGY, which represents the shader output topology.
GSMaxOutputVertexCount
Typ: UINTGeometry shader maximum output vertex count.
InputPrimitive
Typ: D3D11_PRIMITIVEThe D3D11_PRIMITIVE-typed value that represents the input primitive for a geometry shader or hull shader.
PatchConstantParameters
Typ: UINTNumber of parameters in the patch-constant signature.
cGSInstanceCount
Typ: UINTNumber of geometry shader instances.
cControlPoints
Typ: UINTNumber of control points in the hull shader and domain shader.
HSOutputPrimitive
Typ: D3D11_TESSELLATOR_OUTPUT_PRIMITIVEThe D3D11_TESSELLATOR_OUTPUT_PRIMITIVE, which represents the tessellator output-primitive type.
HSPartitioning
Typ: D3D11_TESSELLATOR_PARTITIONINGThe D3D11_TESSELLATOR_PARTITIONING, which represents the tessellator partitioning mode.
TessellatorDomain
Typ: D3D11_TESSELLATOR_DOMAINThe D3D11_TESSELLATOR_DOMAIN, which represents the tessellator domain.
cBarrierInstructions
Typ: UINTNumber of barrier instructions in a compute shader.
cInterlockedInstructions
Typ: UINTNumber of interlocked instructions in a compute shader.
cTextureStoreInstructions
Typ: UINTNumber 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 |