HeightmapSamplesCache

Description

sealed class Tinman.Terrain.Heightmaps.HeightmapSamplesCache

Derived from

IMemoryConsumption

A cache of reusable helper object that may be passed to IHeightmap.GetSamples in order to minimize creation of temporary buffers.

Public / Methods

Get


public method Get → ()
<T ref : IMemoryConsumption>

returns → T

The helper.

Obtains a new helper of the given type, without removing it from the cache.

Pop


public method Pop → ()
<T ref : IMemoryConsumption>

returns → T

The helper.

Obtains a new helper of the given type and removes it from the cache.

Push


public method Push → (1)

helper in : IMemoryConsumption

The helper to return.

Returns a helper that has been obtained via Pop to the cache.