Condividi tramite


D3D10_PRIMITIVE_TOPOLOGY enumeration

How the pipeline interprets vertex data that is bound to the input-assembler stage. These primitive types determine how the vertex data is rendered on screen.

Syntax

typedef enum D3D10_PRIMITIVE_TOPOLOGY { 
  D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED          = 0,
  D3D10_PRIMITIVE_TOPOLOGY_POINTLIST          = 1,
  D3D10_PRIMITIVE_TOPOLOGY_LINELIST           = 2,
  D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP          = 3,
  D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST       = 4,
  D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP      = 5,
  D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ       = 10,
  D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ      = 11,
  D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ   = 12,
  D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ  = 13
} D3D10_PRIMITIVE_TOPOLOGY;

Constants

  • D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED
    The IA stage has not been initialized with a primitive topology. The IA stage will not function properly unless a primitive topology is defined.

  • D3D10_PRIMITIVE_TOPOLOGY_POINTLIST
    Interpret the vertex data as a list of points.

  • D3D10_PRIMITIVE_TOPOLOGY_LINELIST
    Interpret the vertex data as a list of lines.

  • D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP
    Interpret the vertex data as a line strip.

  • D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST
    Interpret the vertex data as a list of triangles.

  • D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP
    Interpret the vertex data as a triangle strip.

  • D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ
    Interpret the vertex data as list of lines with adjacency data.

  • D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ
    Interpret the vertex data as line strip with adjacency data.

  • D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ
    Interpret the vertex data as list of triangles with adjacency data.

  • D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ
    Interpret the vertex data as triangle strip with adjacency data.

Remarks

The D3D10_PRIMITIVE_TOPOLOGY enumeration is type defined in the D3D10.h header file as a D3D_PRIMITIVE_TOPOLOGY enumeration, which is fully defined in the D3DCommon.h header file.


typedef D3D_PRIMITIVE_TOPOLOGY D3D10_PRIMITIVE_TOPOLOGY;

Requirements

Header

D3D10.h

See also

Core Enumerations