maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
11 lines (8 loc) • 388 B
text/typescript
import {createLayout, type StructArrayLayout, type StructArrayMember} from '../../util/struct_array.ts';
const layout: StructArrayLayout = createLayout([
{name: 'a_pos', components: 2, type: 'Int16'}
], 4);
export default layout;
export const members: StructArrayMember[] = layout.members;
export const size: number = layout.size;
export const alignment: number = layout.alignment;