Files
lan-manager/web/node_modules/@antv/g-webgpu-engine/es/webgl/ReglComputeModel.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

30 lines
994 B
TypeScript

import { GLSLContext, IComputeModel } from '@antv/g-webgpu-core';
import regl from 'regl';
/**
* adaptor for regl.DrawCommand
*/
export default class ReglComputeModel implements IComputeModel {
private reGl;
private context;
private entity;
private texFBO;
private computeCommand;
private textureCache;
private outputTextureName;
private swapOutputTextureName;
private compiledPingpong;
private dynamicPingpong;
constructor(reGl: regl.Regl, context: GLSLContext);
run(): void;
readData(): Promise<any>;
confirmInput(model: IComputeModel, inputName: string): void;
updateUniform(): void;
updateBuffer(bufferName: string, data: number[] | Float32Array | Uint8Array | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array, offset?: number): void;
destroy(): void;
private swap;
private getOuputDataTexture;
private createSwapOutputDataTexture;
private cloneDataTexture;
private calcDataTexture;
}