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
Draw patches for hardware tessellation on the GPU, instead of regular primitives?
Defaults to false
.
Type
Specifies the graphics primitive to use for subsequent draw calls.
Defaults to Primitive.PointList.