formatSize top-level constant

Map<Format, int> const formatSize

Implementation

const formatSize = <Format, int>{
  Format.uint1: 1,
  Format.uint2: 1,
  Format.uint4: 1,
  Format.uint8: 1,
  Format.uint16: 2,
  Format.uint32: 4,
  Format.int8: 1,
  Format.int16: 2,
  Format.int32: 4,
  Format.float16: 2,
  Format.float32: 4,
  Format.float64: 8
};