Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/g-webgpu-engine/es/webgl/ReglBuffer.d.ts
T

16 lines
512 B
TypeScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
import { BufferData, IBuffer, IBufferInitializationOptions } from '@antv/g-webgpu-core';
import regl from 'regl';
/**
* adaptor for regl.Buffer
* @see https://github.com/regl-project/regl/blob/gh-pages/API.md#buffers
*/
export default class ReglBuffer implements IBuffer {
private buffer;
constructor(reGl: regl.Regl, options: IBufferInitializationOptions);
get(): regl.Buffer;
destroy(): void;
subData({ data, offset }: {
data: BufferData;
offset: number;
}): void;
}