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

15 lines (14 loc) 577 B
import { Pipeline } from "../../pipelines/Pipeline"; export interface IShaderResource { mustBeTransfered: boolean; gpuResource: any; descriptor: any; setPipelineType(pipelineType: "compute" | "render" | "compute_mixed"): any; createDeclaration(varName: string, bindingId: number, groupId: number): string; createBindGroupLayoutEntry(bindingId: number): any; createBindGroupEntry(bindingId: number): any; createGpuResource(): any; destroyGpuResource(): any; update(pipeline?: Pipeline): any; clone(): IShaderResource; }