1 | import { BufferData, IAttribute, IAttributeInitializationOptions } from '@antv/g-webgpu-core';
|
2 | import regl from 'regl';
|
3 | /**
|
4 | * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#attributes
|
5 | */
|
6 | export 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 | }
|