UNPKG

pex-context

Version:

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.

27 lines (26 loc) 674 B
export default createQuery; export type QueryOptions = import("./types.js").PexResource; export type PexQuery = QueryOptions; declare function createQuery(ctx: any, opts?: {}): { class: string; handle: any; target: any; state: any; result: any; _begin: typeof begin; _end: typeof end; _available: typeof available; _dispose(): void; }; declare function begin({ QueryState, gl }: { QueryState: any; gl: any; }, q: any): boolean; declare function end({ QueryState, gl }: { QueryState: any; gl: any; }, q: any): boolean; declare function available({ gl, QueryState }: { gl: any; QueryState: any; }, q: any): boolean;