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.

12 lines (11 loc) 344 B
export default createBuffer; export type BufferOptions = import("./types.js").PexResource; declare function createBuffer(ctx: any, opts: any): { class: string; handle: any; target: any; usage: any; _update: typeof updateBuffer; _dispose(): void; }; declare function updateBuffer(ctx: any, buffer: any, opts: any): void;