UNPKG

bun-webgpu

Version:

Native WebGPU implementation for Bun runtime

12 lines (11 loc) 406 B
import type { Pointer } from "bun:ffi"; import type { FFISymbols } from "./ffi"; export declare class GPUComputePipelineImpl implements GPUComputePipeline { private lib; __brand: "GPUComputePipeline"; label: string; readonly ptr: Pointer; constructor(ptr: Pointer, lib: FFISymbols, label?: string); getBindGroupLayout(index: number): GPUBindGroupLayout; destroy(): undefined; }