D3D11_FUNCTION_DESC structure (d3d11shader.h)

Décrit une fonction.

Syntaxe

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;

Membres

Version

Type : UINT

Version du nuanceur.

Creator

Type : LPCSTR

Nom de l’initiateur de la fonction.

Flags

Type : UINT

Combinaison de constantes D3DCOMPILE qui sont combinées à l’aide d’une opération OR au niveau du bit. La valeur résultante spécifie la compilation et l’analyse du nuanceur.

ConstantBuffers

Type : UINT

Nombre de mémoires tampons constantes pour la fonction.

BoundResources

Type : UINT

Nombre de ressources liées pour la fonction.

InstructionCount

Type : UINT

Nombre d’instructions émises pour la fonction.

TempRegisterCount

Type : UINT

Nombre de registres temporaires utilisés par la fonction.

TempArrayCount

Type : UINT

Nombre de tableaux temporaires utilisés par la fonction.

DefCount

Type : UINT

Nombre de constantes définie pour la fonction.

DclCount

Type : UINT

Nombre de déclarations (entrée + sortie) pour la fonction.

TextureNormalInstructions

Type : UINT

Nombre d’instructions de texture non catégorisées pour la fonction.

TextureLoadInstructions

Type : UINT

Nombre d’instructions de chargement de texture pour la fonction.

TextureCompInstructions

Type : UINT

Nombre d’instructions de comparaison de textures pour la fonction.

TextureBiasInstructions

Type : UINT

Nombre d’instructions de biais de texture pour la fonction.

TextureGradientInstructions

Type : UINT

Nombre d’instructions de dégradé de texture pour la fonction.

FloatInstructionCount

Type : UINT

Nombre d’instructions arithmétiques à virgule flottante utilisées par la fonction .

IntInstructionCount

Type : UINT

Nombre d’instructions arithmétiques d’entier signé utilisées par la fonction .

UintInstructionCount

Type : UINT

Nombre d’instructions arithmétiques d’entier non signé utilisées par la fonction .

StaticFlowControlCount

Type : UINT

Nombre d’instructions de contrôle de flux statique utilisées par la fonction .

DynamicFlowControlCount

Type : UINT

Nombre d’instructions de contrôle de flux dynamique utilisées par la fonction.

MacroInstructionCount

Type : UINT

Nombre d’instructions de macro utilisées par la fonction.

ArrayInstructionCount

Type : UINT

Nombre d’instructions de tableau utilisées par la fonction.

MovInstructionCount

Type : UINT

Nombre d’instructions mov utilisées par la fonction.

MovcInstructionCount

Type : UINT

Nombre d’instructions movc utilisées par la fonction .

ConversionInstructionCount

Type : UINT

Nombre d’instructions de conversion de type utilisées par la fonction.

BitwiseInstructionCount

Type : UINT

Nombre d’instructions arithmétiques au niveau du bit utilisées par la fonction.

MinFeatureLevel

Type : D3D_FEATURE_LEVEL

Valeur de type D3D_FEATURE_LEVEL qui spécifie la cible minimale de niveau de fonctionnalité Direct3D du code d’octet de la fonction.

RequiredFeatureFlags

Type : UINT64

Valeur qui contient une combinaison d’un ou plusieurs indicateurs d’exigences de nuanceur ; chaque indicateur spécifie une exigence du nuanceur. La valeur par défaut 0 signifie qu’il n’y a aucune exigence. Pour obtenir la liste des valeurs, consultez ID3D11ShaderReflection::GetRequiresFlags.

Name

Type : LPCSTR

Nom de la fonction.

FunctionParameterCount

Type : INT

Nombre de paramètres logiques dans la signature de fonction, sans la valeur de retour.

HasReturn

Type : BOOL

Indique si la fonction retourne une valeur. TRUE indique qu’elle retourne une valeur ; sinon, FALSE (il s’agit d’une sous-routine).

Has10Level9VertexShader

Type : BOOL

Indique s’il existe un objet blob de nuanceur de vertex Direct3D 10Level9. TRUE indique qu’il existe un objet blob de nuanceur de vertex 10Level9 ; sinon, FALSE.

Has10Level9PixelShader

Type : BOOL

Indique s’il existe un objet blob de nuanceur de pixels Direct3D 10Level9. TRUE indique qu’il existe un objet blob de nuanceur de pixels 10Level9 ; sinon, FALSE.

Spécifications

   
En-tête d3d11shader.h

Voir aussi

ID3D11FunctionReflection::GetDesc

Structures de nuanceur