Skip to content

core.TypeAlias.TextureDataTypeToBufferType

github-actions[bot] edited this page Sep 3, 2024 · 6 revisions

@monogrid/gainmap-js / core / TextureDataTypeToBufferType

Type Alias: TextureDataTypeToBufferType<TType>

TextureDataTypeToBufferType<TType>: TType extends typeof UnsignedByteType ? Uint8ClampedArray : TType extends typeof HalfFloatType ? Uint16Array : TType extends typeof UnsignedIntType ? Uint32Array : TType extends typeof ByteType ? Int8Array : TType extends typeof ShortType ? Int16Array : TType extends typeof IntType ? Int32Array : TType extends typeof FloatType ? Float32Array : never

Utility Type that translates three texture types to their TypedArray counterparts.

Type Parameters

TType extends TextureDataType

Defined in

src/core/QuadRenderer.ts:38

Clone this wiki locally