UNPKG

@thi.ng/webgl

Version:

WebGL & GLSL abstraction layer

5 lines 583 B
import type { UIntArray } from "@thi.ng/api"; import type { ITexture, ReadableTextureFormat, TextureType } from "./api/texture.js"; export declare const readPixels: <T extends UIntArray | Float32Array>(gl: WebGLRenderingContext, x: number, y: number, w: number, h: number, format: ReadableTextureFormat, type: TextureType, out: T) => T; export declare const readTexture: <T extends Uint8Array | Uint16Array | Uint32Array | Float32Array>(gl: WebGLRenderingContext, tex: ITexture, format: ReadableTextureFormat, type: TextureType, out: T) => T; //# sourceMappingURL=readpixels.d.ts.map