UNPKG

523 BTypeScriptView Raw
1import { BufferData, IAttribute, IAttributeInitializationOptions } from '@antv/g-webgpu-core';
2import regl from 'regl';
3/**
4 * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#attributes
5 */
6export default class ReglAttribute implements IAttribute {
7 private attribute;
8 private buffer;
9 constructor(gl: regl.Regl, options: IAttributeInitializationOptions);
10 get(): regl.Attribute;
11 updateBuffer(options: {
12 data: BufferData;
13 offset: number;
14 }): void;
15 destroy(): void;
16}