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

14 lines (13 loc) 532 B
/// <reference types="dist" /> import { EventDispatcher } from "../../EventDispatcher"; export declare class StageableBuffer extends EventDispatcher { static ON_OUTPUT_DATA: string; static ON_OUTPUT_PROCESS_START: string; onOutputData: ((data: ArrayBuffer) => void) | null; constructor(); protected stagingBuffer: GPUBuffer; protected canCallMapAsync: boolean; onCanCallMapAsync: (() => void) | null; get mustOutputData(): boolean; getOutputData(buffer: GPUBuffer): Promise<void>; }