HeightmapSamplesHelper_Buffer

Description

sealed class Tinman.Terrain.Heightmaps.HeightmapSamplesHelper_Buffer

Derived from

IMemoryConsumption

A helper that provides a temporary HeightmapSamples buffer via Buffer.

Public / Methods

Buffer


public method Buffer → (2)

capacity opt : int32 = 0

The required minimum capacity.

layers opt : HeightmapLayer = HeightmapLayer.None

The required heightmap layers.

returns → HeightmapSamples

The temporary HeightmapSample object or null iff capacity opt is less than or equal to zero or layers opt is HeightmapLayer.None.

Returns a shared temporary HeightmapSample object.