-
Notifications
You must be signed in to change notification settings - Fork 9
core.TypeAlias.TextureDataTypeToBufferType
github-actions[bot] edited this page Apr 2, 2025
·
16 revisions
@monogrid/gainmap-js / core / TextureDataTypeToBufferType
TextureDataTypeToBufferType<
TType
> =TType
extends typeofUnsignedByteType
?Uint8ClampedArray
:TType
extends typeofHalfFloatType
?Uint16Array
:TType
extends typeofUnsignedIntType
?Uint32Array
:TType
extends typeofByteType
?Int8Array
:TType
extends typeofShortType
?Int16Array
:TType
extends typeofIntType
?Int32Array
:TType
extends typeofFloatType
?Float32Array
:never
Defined in: src/core/QuadRenderer.ts:38
Utility Type that translates three
texture types to their TypedArray counterparts.
TType
extends TextureDataType