core.TypeAlias.TextureDataTypeToBufferType - MONOGRID/gainmap-js GitHub Wiki

@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

Defined in: src/core/QuadRenderer.ts:38

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

Type Parameters

TType

TType extends TextureDataType

⚠️ **GitHub.com Fallback** ⚠️