D3D11_SHADER_DESC struttura (d3d11shader.h)

Descrive uno shader.

Sintassi

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;
  D3D_PRIMITIVE_TOPOLOGY           GSOutputTopology;
  UINT                             GSMaxOutputVertexCount;
  D3D_PRIMITIVE                    InputPrimitive;
  UINT                             PatchConstantParameters;
  UINT                             cGSInstanceCount;
  UINT                             cControlPoints;
  D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive;
  D3D_TESSELLATOR_PARTITIONING     HSPartitioning;
  D3D_TESSELLATOR_DOMAIN           TessellatorDomain;
  UINT                             cBarrierInstructions;
  UINT                             cInterlockedInstructions;
  UINT                             cTextureStoreInstructions;
} D3D11_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: D3D_PRIMITIVE_TOPOLOGY

Valore D3D_PRIMITIVE_TOPOLOGY tipizzato che rappresenta la topologia di output geometry shader.

GSMaxOutputVertexCount

Tipo: UINT

Numero massimo di vertici di output geometry shader.

InputPrimitive

Tipo: D3D_PRIMITIVE

Valore D3D_PRIMITIVE tipizzato che rappresenta la primitiva di input per un shader geometry o uno shader dello scafo.

PatchConstantParameters

Tipo: UINT

Numero di parametri nella firma costante patch.

cGSInstanceCount

Tipo: UINT

Numero di istanze geometry shader.

cControlPoints

Tipo: UINT

Numero di punti di controllo nello shader dello scafo e dello shader di dominio.

HSOutputPrimitive

Tipo: D3D_TESSELLATOR_OUTPUT_PRIMITIVE

Valore D3D_TESSELLATOR_OUTPUT_PRIMITIVE tipizzato che rappresenta il tipo di output-primitive del tessellatore.

HSPartitioning

Tipo: D3D_TESSELLATOR_PARTITIONING

Valore D3D_TESSELLATOR_PARTITIONING tipizzato che rappresenta la modalità di partizionamento del tessellatore.

TessellatorDomain

Tipo: D3D_TESSELLATOR_DOMAIN

Valore D3D_TESSELLATOR_DOMAIN tipizzato che rappresenta il dominio tessellatore.

cBarrierInstructions

Tipo: UINT

Numero di istruzioni sulla barriera in un shader di calcolo.

cInterlockedInstructions

Tipo: UINT

Numero di istruzioni interlock in uno shader di calcolo.

cTextureStoreInstructions

Tipo: UINT

Numero di scritture di trama in un shader di calcolo.

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 ID3D11ShaderReflection::GetDesc.

Requisiti

   
Intestazione d3d11shader.h

Vedi anche

Strutture shader