starry / backend /libs /three /renderers /webgl /WebGLAttributes.d.ts
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
import { WebGLCapabilities } from './WebGLCapabilities';
import { BufferAttribute } from '../../core/BufferAttribute';
import { InterleavedBufferAttribute } from '../../core/InterleavedBufferAttribute';
export class WebGLAttributes {
constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, capabilities: WebGLCapabilities);
get(attribute: BufferAttribute | InterleavedBufferAttribute): {
buffer: WebGLBuffer;
type: number;
bytesPerElement: number;
version: number;
};
remove(attribute: BufferAttribute | InterleavedBufferAttribute): void;
update(attribute: BufferAttribute | InterleavedBufferAttribute, bufferType: number): void;
}