formatToFormatType top-level constant

Map<Format, FormatType> const formatToFormatType

Implementation

const formatToFormatType = <Format, FormatType>{
  Format.uint1: FormatType.uint,
  Format.uint2: FormatType.uint,
  Format.uint4: FormatType.uint,
  Format.uint8: FormatType.uint,
  Format.uint16: FormatType.uint,
  Format.uint32: FormatType.uint,
  Format.int8: FormatType.int,
  Format.int16: FormatType.int,
  Format.int32: FormatType.int,
  Format.float16: FormatType.float,
  Format.float32: FormatType.float,
  Format.float64: FormatType.float
};