We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@monogrid/gainmap-js / core / TextureDataTypeToBufferType
TextureDataTypeToBufferType<TType> = TType extends typeof UnsignedByteType ? Uint8ClampedArray<ArrayBuffer> : TType extends typeof ByteType ? Int8Array<ArrayBuffer> : TType extends typeof ShortType ? Int16Array<ArrayBuffer> : TType extends typeof UnsignedShortType ? Uint16Array<ArrayBuffer> : TType extends typeof IntType ? Int32Array<ArrayBuffer> : TType extends typeof UnsignedIntType ? Uint32Array<ArrayBuffer> : TType extends typeof FloatType ? Float32Array<ArrayBuffer> : TType extends typeof HalfFloatType ? Uint16Array<ArrayBuffer> : TType extends typeof UnsignedShort4444Type ? Uint16Array<ArrayBuffer> : TType extends typeof UnsignedShort5551Type ? Uint16Array<...> : ... extends ... ? ... : ...
TType
UnsignedByteType
Uint8ClampedArray
ArrayBuffer
ByteType
Int8Array
ShortType
Int16Array
UnsignedShortType
Uint16Array
IntType
Int32Array
UnsignedIntType
Uint32Array
FloatType
Float32Array
HalfFloatType
UnsignedShort4444Type
UnsignedShort5551Type
Defined in: src/core/QuadRenderer.ts:44
Utility Type that translates three texture types to their TypedArray counterparts.
three
TType extends TextureDataType
TextureDataType