-
Notifications
You must be signed in to change notification settings - Fork 5
core.TypeAlias.TextureDataTypeToBufferType
github-actions[bot] edited this page Oct 26, 2024
·
7 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
Utility Type that translates three
texture types to their TypedArray counterparts.
• TType extends TextureDataType