UNPKG

xgpu

Version:

XGPU is an extendable library for WebGPU that provides a higher-level, easy-to-use interface for building rendering engines or processing numeric data. It handles automatic data binding, buffer alignment, variable declarations in shaders, and more. XGPU i

11 lines (10 loc) 384 B
import { RenderPipeline } from "../pipelines/RenderPipeline"; import { ShaderStage } from "./shaderParts/ShaderStage"; import { ShaderStruct } from "./shaderParts/ShaderStruct"; export declare class VertexShader extends ShaderStage { constructor(); build(pipeline: RenderPipeline, input: ShaderStruct): { code: string; output: ShaderStruct; }; }