UNPKG

maplibre-gl

Version:

BSD licensed community fork of mapbox-gl, a WebGL interactive maps library

12 lines (9 loc) • 547 B
import {createLayout, type StructArrayLayout, type StructArrayMember} from '../../util/struct_array.ts'; export const lineLayoutAttributes: StructArrayLayout = createLayout([ {name: 'a_pos_normal', components: 2, type: 'Int16'}, {name: 'a_data', components: 4, type: 'Uint8'}, {name: 'a_offset_normal', components: 2, type: 'Int8'} ], 2); export const members: StructArrayMember[] = lineLayoutAttributes.members; export const size: number = lineLayoutAttributes.size; export const alignment: number = lineLayoutAttributes.alignment;