pex-context
Version:
Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
25 lines (24 loc) • 686 B
TypeScript
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;
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;