VertexBufferUpdater

Description

sealed class Tinman.Terrain.Kernel.VertexBufferUpdater

Derived from

VertexUpdater abstract

An implementation of the IVertexUpdater interface that generates binary vertex data using a IVertexFormat and stores it in a IVertexBuffer.

Public / Constructors

Vertex​Buffer​Updater


public constructor VertexBufferUpdater → (1)

vertexFormat in : IVertexFormat

[not-null]
The initial vertex format (see VertexFormat).

Creates a new instance of VertexBufferUpdater.

Public / Methods

Invalidate


public method Invalidate → ()

Causes the next call to IDataUpdater.Validate to return false.

Call this method if the vertex buffer needs to be refreshed.

Public / Attributes

Granularity


public attribute Granularity → (get,set)

value : int32

[>=0]
The maximum number of vertices. If zero, the number of vertices will not be limited.

Specifies the maximum number of vertices to update in a single block.

This value is ends up as the maximum parameter of the calls to IGpuBuffer.BufferMap, which limits the size of the temporary memory buffer when GpuBufferFlags.Map is not used. The default value is 16384.

Vertex​Buffer


public attribute VertexBuffer → (get,set)

value : IVertexBuffer

The vertex buffer or null.

The vertex buffer to update.

Vertex​Format


public attribute VertexFormat → (get)

value : IVertexFormat

The vertex format or null.

The vertex format to use.