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

16 lines (15 loc) 523 B
/// <reference types="dist" /> import { RenderPipeline } from "../RenderPipeline"; import { IndexBuffer } from "./IndexBuffer"; export declare class DrawConfig { vertexCount: number; instanceCount: number; firstVertexId: number; firstInstanceId: number; baseVertex: number; indexBuffer: IndexBuffer; protected pipeline: RenderPipeline; protected setupDrawCompleted: boolean; constructor(renderPipeline: RenderPipeline); draw(renderPass: GPURenderPassEncoder): void; }