IPrimitiveRenderer
Description
- Extended by
-
PrimitiveRenderer abstract
Base interface for classes that provide methods for drawing graphic primitives (both indexed and non-indexed) and for dispatching general-purpose computational work.
- See also
Public / Methods
Draw
Draws primitives.
The vertices are stored in a IVertexBuffer object. The application is responsible for setting the proper render states.
DrawIndexed
Draws indexed primitives.
The vertex indices of the primitive are stored in an IIndexBuffer object, the vertices are stored in a IVertexBuffer object. The application is responsible for setting the proper render states.
Exactly indexCount in indices will read from the index buffer, starting at the buffer index firstIndex in (not ! byte offset).
DrawIndirect
Draws indexed primitives indirectly from the current draw buffer (see Buffer).
This methods returns silently if Buffer is null
or if CanDrawIndirect returns false
.
Public / Attributes
Buffer
The buffer to use for drawing primitives indirectly.
The element size and layout of the buffer is defined by the underlying graphics API and is usually populated by GPU programs. Please refer to the documentation of the respective subclass for details.
CanRestartPrimitive
Can primitives be restarted by inserting a special index (~0
) into the stream?
Patches
Specifies the patch size to use for subsequent draw calls (hardware tessellation).
Defaults to 0
.
Type
Specifies the primitive type to use for subsequent draw calls (regular primitives).
If Patches is greater than zero, the primitive type is ignored. Defaults to Primitive.PointList.