ModelGeometryBuffer

Description

sealed class Tinman.Engine.Models.ModelGeometryBuffer

Derived from

ResourceBase abstract
IModelGeometryListener

Wraps GPU resource objects for a IModelGeometry object.

Public / Constructors

Model​Geometry​Buffer


public constructor ModelGeometryBuffer → (2)

context in : IGraphicsContext

[not-null]
The GPU buffer factory to use.

data in : ModelGeometryData

[not-null]
The model geometry data.

Creates a new instance of ModelGeometryBuffer.

RenderException

If a graphics subsystem error has occurred.

Public / Methods

Update​Buffer


public method UpdateBuffer → ()

Updates the GPU buffers, if necessary.

Public / Attributes

Geometry​Buffer


public attribute GeometryBuffer → (get)

value : IGeometryBuffer

[not-null]
The geometry buffer.

The GPU geometry buffer (vertices / indices / instances).