Condividi tramite


D3D10_SHADER_DESC struttura (d3d10shader.h)

Descrive uno shader.

Sintassi

typedef struct _D3D10_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;
} D3D10_SHADER_DESC;

Members

Version

Tipo: UINT

Versione shader.

Creator

Tipo: LPCSTR

Nome dell'originatore dello shader.

Flags

Tipo: UINT

Flag di compilazione/analisi shader.

ConstantBuffers

Tipo: UINT

Numero di buffer costanti shader.

BoundResources

Tipo: UINT

Numero di risorse (trame e buffer) associati a uno shader.

InputParameters

Tipo: UINT

Numero di parametri nella firma di input.

OutputParameters

Tipo: UINT

Numero di parametri nella firma di output.

InstructionCount

Tipo: UINT

Numero di istruzioni in linguaggio intermedio nel shader compilato.

TempRegisterCount

Tipo: UINT

Numero di registri temporanei nel shader compilato.

TempArrayCount

Tipo: UINT

Numero di matrici temporanee usate.

DefCount

Tipo: UINT

Numero di definizioni costanti.

DclCount

Tipo: UINT

Numero di dichiarazioni (input + output).

TextureNormalInstructions

Tipo: UINT

Numero di istruzioni di trama non categorizzate.

TextureLoadInstructions

Tipo: UINT

Numero di istruzioni di caricamento della trama

TextureCompInstructions

Tipo: UINT

Numero di istruzioni di confronto tra trame

TextureBiasInstructions

Tipo: UINT

Numero di istruzioni di distorsione della trama

TextureGradientInstructions

Tipo: UINT

Numero di istruzioni sulla sfumatura di trama.

FloatInstructionCount

Tipo: UINT

Numero di istruzioni aritmetiche aritmetiche a virgola mobile usate.

IntInstructionCount

Tipo: UINT

Numero di istruzioni aritmetiche intere firmate usate.

UintInstructionCount

Tipo: UINT

Numero di istruzioni aritmetiche intere senza segno usate.

StaticFlowControlCount

Tipo: UINT

Numero di istruzioni per il controllo del flusso statico usate.

DynamicFlowControlCount

Tipo: UINT

Numero di istruzioni di controllo del flusso dinamico usate.

MacroInstructionCount

Tipo: UINT

Numero di istruzioni macro usate.

ArrayInstructionCount

Tipo: UINT

Numero di istruzioni della matrice usate.

CutInstructionCount

Tipo: UINT

Numero di istruzioni di taglio usate.

EmitInstructionCount

Tipo: UINT

Numero di istruzioni di emissione usate.

GSOutputTopology

Tipo: D3D10_PRIMITIVE_TOPOLOGY

Topologia di output geometry shader.

GSMaxOutputVertexCount

Tipo: UINT

Numero massimo di vertici di output geometry shader.

Commenti

Uno shader viene scritto in HLSL e compilato in un linguaggio intermedio dal compilatore HLSL. La descrizione dello shader restituisce informazioni sul shader compilato. Ottenere una descrizione dello shader chiamando ID3D10ShaderReflection::GetDesc.

Requisiti

Requisito Valore
Intestazione d3d10shader.h

Vedi anche

Strutture shader