typegpu
Version:
A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.
20 lines (19 loc) • 465 B
TypeScript
/**
* A vertex function that defines a single full-screen triangle out
* of three points.
*
* @example
* ```ts
* import { common } from 'typegpu';
*
* const pipeline = root.createRenderPipeline({
* vertex: common.fullScreenTriangle,
* fragment: yourFragmentShader,
* });
*
* pipeline.draw(3);
* ```
*/
export declare const fullScreenTriangle: import("../indexNamedExports.ts").TgpuVertexFn<{}, {
uv: import("../data/wgslTypes.ts").Vec2f;
}>;