/** * @file state.ts * @brief Renderer storage, slot ownership and invalidation state. */ import { type LinkJob, type Shared } from "./shared.js"; /** @brief State of a renderer and its slot bookkeeping. */ export declare abstract class State { protected readonly gl: WebGL2RenderingContext; protected vao: WebGLVertexArrayObject; protected buildVao: WebGLVertexArrayObject; protected lumaVao: WebGLVertexArrayObject; protected ubo: WebGLBuffer; protected frameUbo: WebGLBuffer; protected unionUbo: WebGLBuffer; protected instBuf: WebGLBuffer; protected lumaBuf: WebGLBuffer; protected pbo: WebGLBuffer; protected backdrop: WebGLTexture; protected present: WebGLProgram; protected split: WebGLProgram; protected splitT: WebGLUniformLocation; protected capture: WebGLProgram; protected captureS: WebGLUniformLocation; protected first: WebGLProgram; protected firstS: WebGLUniformLocation; protected first8: WebGLProgram; protected first8S: WebGLUniformLocation; protected down8: WebGLProgram; protected down8S: WebGLUniformLocation; protected down: WebGLProgram; protected downS: WebGLUniformLocation; protected luma: WebGLProgram; protected lumaW: WebGLUniformLocation; protected lumaTex: WebGLTexture; protected lumaFbo: WebGLFramebuffer; protected halfFloat: boolean; protected parallel: boolean; protected readonly frame: Float32Array; protected contextScale: number; protected surfaceScale: number; protected surfaceStateFactor: number; protected readonly programs: Map; protected readonly warming: Map; protected readonly fresh: WebGLProgram[]; protected readonly freshMode: number[]; protected warmUbo: WebGLBuffer | null; protected readonly rimPrograms: Map; protected rimVao: WebGLVertexArrayObject | null; protected rimVertexBuffer: WebGLBuffer | null; protected rimIndexBuffer: WebGLBuffer | null; protected readonly rimVertices: Float32Array; protected readonly maxTex: number; protected readonly strideBytes: number; protected readonly stride: number; protected readonly ustrideBytes: number; protected readonly ustride: number; protected readonly pageTex: (WebGLTexture | null)[]; protected readonly pageFbo: (WebGLFramebuffer | null)[]; protected readonly pageDim: Int32Array; protected readonly progs: (WebGLProgram | null)[]; protected readonly fields: (WebGLTexture | null)[]; protected readonly masks: (WebGLTexture | null)[]; protected readonly sources: (TexImageSource | null)[]; protected readonly mfields: (WebGLTexture | null)[]; protected readonly mmasks: (WebGLTexture | null)[]; protected readonly msources: (TexImageSource | null)[]; protected readonly kit: (WebGLProgram | null)[]; protected readonly kitLoc: (WebGLUniformLocation | null)[]; protected blocks: Float32Array; protected ublocks: Float32Array; protected geo: Float32Array; protected cap: Float32Array; protected bounds: Float32Array; protected ad: Float32Array; protected tints: Float32Array; protected chromatic: Float64Array; protected chromaticDefault: number; protected members: Float32Array; protected inst: Float32Array; protected lumaData: Float32Array; protected lumaBytes: Uint8Array; protected reg: Int32Array; protected keys: Int32Array; protected feats: Int32Array; protected order: Int32Array; protected ucount: Int32Array; protected gens: Int32Array; protected list: Int32Array; protected lvl: Int32Array; protected depth: Int32Array; protected fdim: Int32Array; protected mfdim: Int32Array; protected seq: Int32Array; protected pos: Int32Array; protected xs: Int32Array; protected mark: Int32Array; protected act: Int32Array; protected cs: Int32Array; protected pairs: Int32Array; protected cand: Int32Array; protected bx: Float32Array; protected changed: Int8Array; protected rebuild: Int8Array; protected shown: Float32Array; protected drect: Float32Array; protected readonly clip: Float32Array; protected readonly scissorBox: Int32Array; protected scissorOn: boolean; protected full: boolean; protected dstart: Int32Array; protected pend: Int32Array; protected pendGen: Int32Array; protected kinds: Int8Array; protected geoms: Int8Array; protected flags: Int8Array; protected st: Int8Array; protected lumaDirty: Int8Array; protected draws: Int8Array; protected fixedTone: Int8Array; protected presets: Int8Array; protected backdropSource: TexImageSource | null; protected backdropPixels: import("../layout.js").BackdropPixels | null; protected count: number; protected xn: number; protected stamp: number; protected capacity: number; protected free: number; protected dirtyLo: number; protected dirtyHi: number; protected uboBytes: number; protected udirtyLo: number; protected udirtyHi: number; protected uuboBytes: number; protected pages: number; protected shelfPage: number; protected shelfX: number; protected shelfY: number; protected shelfH: number; protected lumaCap: number; protected pendCount: number; protected depths: number; protected sync: WebGLSync | null; protected source: WebGLTexture | null; protected sceneTex: WebGLTexture | null; protected copyTex: WebGLTexture | null; protected destinationTex: WebGLTexture | null; protected sceneFbo: WebGLFramebuffer | null; protected copyFbo: WebGLFramebuffer | null; protected destinationFbo: WebGLFramebuffer | null; protected bothFbo: WebGLFramebuffer | null; protected sceneW: number; protected sceneH: number; protected backdropDirty: boolean; protected frameDirty: boolean; protected layoutDirty: boolean; protected layered: boolean; protected flat: boolean; protected overlap: boolean; protected env: number; protected extended: boolean; protected wantExtended: boolean; protected headroom: number; protected share: number; protected maskDirty: boolean; protected stale: boolean; protected topDown: boolean; protected width: number; protected height: number; protected scale: number; protected lastTime: number; protected constructor(gl: WebGL2RenderingContext, sh: Shared, strideBytes: number, ustrideBytes: number, maxTex: number); protected adopt(sh: Shared): void; protected clipTo(x: number, y: number, w: number, h: number): void; protected clipOff(): void; protected clipBack(): void; protected take(): number; protected texel(slot: number): number; protected slotOf(handle: number): number; protected swell(slot: number): number; protected touch(slot: number): void; protected stage(slot: number): void; protected grow(): void; }