sealed class Tinman.AddOns.DirectX11.DirectX11PrimitiveRenderer

Derived from

PrimitiveRenderer abstract

Full source code is included in the Tinman 3D SDK download.

Implementation of the IPrimitiveRenderer interface that uses a Direct3D 11 ID3D11DeviceContext COM object.

The draw buffer (see IPrimitiveRenderer.Buffer) has an element size of 20 bytes and the following layout:

struct DrawIndexedInstancedIndirectArgs {
  UINT IndexCountPerInstance;
  UINT InstanceCount;
  UINT StartIndexLocation;
  INT BaseVertexLocation;
  UINT StartInstanceLocation;

Public / Constructors


public constructor DirectX11PrimitiveRenderer → (1)

context in : IntPtr

The ID3D11DeviceContext* COM pointer.

Creates a new instance of DirectX11PrimitiveRenderer.