SampleBufferFloat32

Description

abstract class Tinman.Terrain.Buffers.SampleBufferFloat32

Derived from

SampleBuffer<float32> abstract

Extended by

DistanceBuffer sealed
NormalBuffer sealed
SlopeBuffer sealed
VectorBuffer sealed

Abstract base class for ISampleBuffer implementations that store 32-bit floating-point values as buffer samples.

Protected / Constructors

Sample​Buffer​Float32

2 overloads


protected constructor SampleBufferFloat321 → (3)

width in : int32

[>0]
Width of this sample buffer.

height in : int32

[>0]
Height of this sample buffer.

tupleSize in : int32

[1..4]
The tuple size of each buffer sample.

Creates a new instance of SampleBufferFloat32.

A new sample buffer array will be allocated.


protected constructor SampleBufferFloat322 → (6)

width in : int32

[>0]
Width of this sample buffer.

height in : int32

[>0]
Height of this sample buffer.

offset in : int32

[>=0]
Offset of top-left sample of this sample buffer in buffer array.

stride in : int32

[>0]
The stride of this sample buffer.

tupleSize in : int32

[1..4]
The tuple size of each buffer sample.

samples in : float32 [ ]

[not-null]
The buffer samples.

Creates a new instance of SampleBufferFloat32.

This sample buffer will use the given data array.