BufferFactory

Description

abstract class Tinman.Terrain.Rendering.BufferFactory

Abstract base class for IBufferFactory implementations.

The default implementations in this class do not support structured buffers. If a subclass wishes to provide support for structured buffers, the following members must be overridden:

Protected / Methods

Throw​If​Custom​Semantic


protected static method ThrowIfCustomSemantic → (2)

source in : string

The error source tag.

flags in : GpuBufferFlags

The buffer flags.

Throws a RenderException if the given buffer flags indicate a custom semantic (draw, work, mesh).

RenderException

If flags in indicate a custom semantic.

Throw​If​Invalid

2 overloads


protected method ThrowIfInvalid1 → (2)

source in : string

The error source tag.

format in : VertexElements

[not-null]
The vertex elements.

Throws a RenderException if the given vertex elements are not supported.

RenderException

If one or more elements in format in are not supported.


protected method ThrowIfInvalid2 → (4)

source in : string

The error source tag.

elementSize in : int32

The element size.

capacity in : int32

The capacity in elements.

flags in : GpuBufferFlags

The buffer flags.

Throws a RenderException if the given buffer parameters are unsupported.

RenderException

If the given buffer parameters are not supported.