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.

26 lines (25 loc) 704 B
export default createFramebuffer; export type Attachment = { texture: import("./types.js").PexResource; target: WebGLRenderingContext.FRAMEBUFFER; }; /** * @typedef {object} Attachment * @property {import("./types.js").PexResource} texture * @property {WebGLRenderingContext.FRAMEBUFFER} target */ declare function createFramebuffer(ctx: any, opts: any): { class: string; handle: any; target: any; name: string; drawBuffers: any[]; color: any[]; depth: any; width: number; height: number; refCount: number; _update: typeof updateFramebuffer; _dispose(): void; }; declare function updateFramebuffer(ctx: any, framebuffer: any, opts: any): void;