TexelBufferBitPattern

Description

abstract class Tinman.Terrain.Rendering.TexelBufferBitPattern

Derived from

TexelBuffer abstract

Extended by

TexelBufferBitPattern16 abstract
TexelBufferBitPattern32 abstract
TexelBufferBitPattern8 abstract

Abstract base class for TexelBuffers that encode one texel using one machine word per component.

Protected / Constructors

Texel​Buffer​Bit​Pattern


protected constructor TexelBufferBitPattern → (6)

width in : int32

[>0]
The buffer width, in texels.

height in : int32

[>0]
The buffer height, in texels.

format in : TextureFormat

[not-null]
The texture format.

mipmap in : TexelBuffer own

Texel buffer of next mipmap or null.

channels in : int32

[>=1]
The number of data channels.

tuples in : int32

[1..4]
The number of data tuples.

Creates a new instance of TexelBufferBitPattern.

Protected / Methods

Channel


protected method Channel → (1)

bits in : int32

[1..8]
The data channel size, in bits.

Specifies a data channel.

Protected / Attributes

channels


protected readonly attribute channels → (int32)

The number of data channels.

mask


protected attribute mask → (int64 [ ])

Bitmask for extracting the channel bits from the texel machine word.

shift


protected attribute shift → (int32 [ ])

Number of left shifts from 1 to the least significant bit of the data channel.

tuples


protected readonly attribute tuples → (int32)

The number of data tuples.