énumération D3D_PRIMITIVE (d3dcommon.h)

Indique comment le pipeline interprète les primitives d’entrée geometry ou hull shader.

Notes

Pour la programmation avec Direct3D 10, cette API a un alias de type qui commence D3D10_ à la place de D3D_. Ces alias de type Direct3D 10 sont définis dans d3d10.h, d3d10misc.het d3d10shader.h.

Syntax

typedef enum D3D_PRIMITIVE {
  D3D_PRIMITIVE_UNDEFINED = 0,
  D3D_PRIMITIVE_POINT = 1,
  D3D_PRIMITIVE_LINE = 2,
  D3D_PRIMITIVE_TRIANGLE = 3,
  D3D_PRIMITIVE_LINE_ADJ = 6,
  D3D_PRIMITIVE_TRIANGLE_ADJ = 7,
  D3D_PRIMITIVE_1_CONTROL_POINT_PATCH = 8,
  D3D_PRIMITIVE_2_CONTROL_POINT_PATCH = 9,
  D3D_PRIMITIVE_3_CONTROL_POINT_PATCH = 10,
  D3D_PRIMITIVE_4_CONTROL_POINT_PATCH = 11,
  D3D_PRIMITIVE_5_CONTROL_POINT_PATCH = 12,
  D3D_PRIMITIVE_6_CONTROL_POINT_PATCH = 13,
  D3D_PRIMITIVE_7_CONTROL_POINT_PATCH = 14,
  D3D_PRIMITIVE_8_CONTROL_POINT_PATCH = 15,
  D3D_PRIMITIVE_9_CONTROL_POINT_PATCH = 16,
  D3D_PRIMITIVE_10_CONTROL_POINT_PATCH = 17,
  D3D_PRIMITIVE_11_CONTROL_POINT_PATCH = 18,
  D3D_PRIMITIVE_12_CONTROL_POINT_PATCH = 19,
  D3D_PRIMITIVE_13_CONTROL_POINT_PATCH = 20,
  D3D_PRIMITIVE_14_CONTROL_POINT_PATCH = 21,
  D3D_PRIMITIVE_15_CONTROL_POINT_PATCH = 22,
  D3D_PRIMITIVE_16_CONTROL_POINT_PATCH = 23,
  D3D_PRIMITIVE_17_CONTROL_POINT_PATCH = 24,
  D3D_PRIMITIVE_18_CONTROL_POINT_PATCH = 25,
  D3D_PRIMITIVE_19_CONTROL_POINT_PATCH = 26,
  D3D_PRIMITIVE_20_CONTROL_POINT_PATCH = 27,
  D3D_PRIMITIVE_21_CONTROL_POINT_PATCH = 28,
  D3D_PRIMITIVE_22_CONTROL_POINT_PATCH = 29,
  D3D_PRIMITIVE_23_CONTROL_POINT_PATCH = 30,
  D3D_PRIMITIVE_24_CONTROL_POINT_PATCH = 31,
  D3D_PRIMITIVE_25_CONTROL_POINT_PATCH = 32,
  D3D_PRIMITIVE_26_CONTROL_POINT_PATCH = 33,
  D3D_PRIMITIVE_27_CONTROL_POINT_PATCH = 34,
  D3D_PRIMITIVE_28_CONTROL_POINT_PATCH = 35,
  D3D_PRIMITIVE_29_CONTROL_POINT_PATCH = 36,
  D3D_PRIMITIVE_30_CONTROL_POINT_PATCH = 37,
  D3D_PRIMITIVE_31_CONTROL_POINT_PATCH = 38,
  D3D_PRIMITIVE_32_CONTROL_POINT_PATCH = 39,
  D3D10_PRIMITIVE_UNDEFINED,
  D3D10_PRIMITIVE_POINT,
  D3D10_PRIMITIVE_LINE,
  D3D10_PRIMITIVE_TRIANGLE,
  D3D10_PRIMITIVE_LINE_ADJ,
  D3D10_PRIMITIVE_TRIANGLE_ADJ,
  D3D11_PRIMITIVE_UNDEFINED,
  D3D11_PRIMITIVE_POINT,
  D3D11_PRIMITIVE_LINE,
  D3D11_PRIMITIVE_TRIANGLE,
  D3D11_PRIMITIVE_LINE_ADJ,
  D3D11_PRIMITIVE_TRIANGLE_ADJ,
  D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH,
  D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH
} ;

Constantes

 
D3D_PRIMITIVE_UNDEFINED
Valeur : 0
D3D_PRIMITIVE_POINT
Valeur : 1
D3D_PRIMITIVE_LINE
Valeur : 2
D3D_PRIMITIVE_TRIANGLE
Valeur : 3
D3D_PRIMITIVE_LINE_ADJ
Valeur : 6
D3D_PRIMITIVE_TRIANGLE_ADJ
Valeur : 7
D3D_PRIMITIVE_1_CONTROL_POINT_PATCH
Valeur : 8
D3D_PRIMITIVE_2_CONTROL_POINT_PATCH
Valeur : 9
D3D_PRIMITIVE_3_CONTROL_POINT_PATCH
Valeur : 10
D3D_PRIMITIVE_4_CONTROL_POINT_PATCH
Valeur : 11
D3D_PRIMITIVE_5_CONTROL_POINT_PATCH
Valeur : 12
D3D_PRIMITIVE_6_CONTROL_POINT_PATCH
Valeur : 13
D3D_PRIMITIVE_7_CONTROL_POINT_PATCH
Valeur : 14
D3D_PRIMITIVE_8_CONTROL_POINT_PATCH
Valeur : 15
D3D_PRIMITIVE_9_CONTROL_POINT_PATCH
Valeur : 16
D3D_PRIMITIVE_10_CONTROL_POINT_PATCH
Valeur : 17
D3D_PRIMITIVE_11_CONTROL_POINT_PATCH
Valeur : 18
D3D_PRIMITIVE_12_CONTROL_POINT_PATCH
Valeur : 19
D3D_PRIMITIVE_13_CONTROL_POINT_PATCH
Valeur : 20
D3D_PRIMITIVE_14_CONTROL_POINT_PATCH
Valeur : 21
D3D_PRIMITIVE_15_CONTROL_POINT_PATCH
Valeur : 22
D3D_PRIMITIVE_16_CONTROL_POINT_PATCH
Valeur : 23
D3D_PRIMITIVE_17_CONTROL_POINT_PATCH
Valeur : 24
D3D_PRIMITIVE_18_CONTROL_POINT_PATCH
Valeur : 25
D3D_PRIMITIVE_19_CONTROL_POINT_PATCH
Valeur : 26
D3D_PRIMITIVE_20_CONTROL_POINT_PATCH
Valeur : 27
D3D_PRIMITIVE_21_CONTROL_POINT_PATCH
Valeur : 28
D3D_PRIMITIVE_22_CONTROL_POINT_PATCH
Valeur : 29
D3D_PRIMITIVE_23_CONTROL_POINT_PATCH
Valeur : 30
D3D_PRIMITIVE_24_CONTROL_POINT_PATCH
Valeur : 31
D3D_PRIMITIVE_25_CONTROL_POINT_PATCH
Valeur : 32
D3D_PRIMITIVE_26_CONTROL_POINT_PATCH
Valeur : 33
D3D_PRIMITIVE_27_CONTROL_POINT_PATCH
Valeur : 34
D3D_PRIMITIVE_28_CONTROL_POINT_PATCH
Valeur : 35
D3D_PRIMITIVE_29_CONTROL_POINT_PATCH
Valeur : 36
D3D_PRIMITIVE_30_CONTROL_POINT_PATCH
Valeur : 37
D3D_PRIMITIVE_31_CONTROL_POINT_PATCH
Valeur : 38
D3D_PRIMITIVE_32_CONTROL_POINT_PATCH
Valeur : 39
D3D10_PRIMITIVE_UNDEFINED
D3D10_PRIMITIVE_POINT
D3D10_PRIMITIVE_LINE
D3D10_PRIMITIVE_TRIANGLE
D3D10_PRIMITIVE_LINE_ADJ
D3D10_PRIMITIVE_TRIANGLE_ADJ
D3D11_PRIMITIVE_UNDEFINED
Le nuanceur n’a pas été initialisé avec un type primitif d’entrée.
D3D11_PRIMITIVE_POINT
Interpréter la primitive d’entrée comme un point.
D3D11_PRIMITIVE_LINE
Interpréter la primitive d’entrée comme une ligne.
D3D11_PRIMITIVE_TRIANGLE
Interpréter la primitive d’entrée comme un triangle.
D3D11_PRIMITIVE_LINE_ADJ
Interpréter la primitive d’entrée comme une ligne avec des données d’adjacence.
D3D11_PRIMITIVE_TRIANGLE_ADJ
Interpréter la primitive d’entrée comme un triangle avec des données d’adjacence.
D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.
D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH
Interpréter la primitive d’entrée comme un correctif de point de contrôle.

Remarques

La méthode ID3D11ShaderReflection ::GetGSInputPrimitive retourne une valeur de type D3D11_PRIMITIVE.

L’énumération D3D11_PRIMITIVE est de type défini dans le fichier d’en-tête D3D11.h en tant qu’énumération D3D_PRIMITIVE, qui est entièrement défini dans le fichier d’en-tête D3DCommon.h.

typedef D3D_PRIMITIVE D3D11_PRIMITIVE;

Configuration requise

Condition requise Valeur
En-tête d3dcommon.h

Voir aussi

Énumérations principales