- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
17 lines
512 B
TypeScript
17 lines
512 B
TypeScript
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;
|
|
}
|