pex-context
Version:
Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
19 lines (18 loc) • 489 B
TypeScript
export default createProgram;
declare function createProgram(ctx: any, opts: any): {
class: string;
handle: any;
attributes: any[];
attributesPerLocation: {};
uniforms: {};
varyings: any;
refCount: number;
_update: typeof updateProgram;
_dispose(): void;
setUniform(name: any, value: any): void;
};
declare function updateProgram(ctx: any, program: any, { vert, frag, vertexLayout }: {
vert: any;
frag: any;
vertexLayout: any;
}): void;