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

10 lines (9 loc) 480 B
export declare class EventDispatcher { protected eventListeners: any; constructor(); addEventListener(eventName: string, callback: (data?: any) => void, removeListenerAfterDispatch?: boolean): void; removeEventListener(eventName: string, callback: (dispatcher: EventDispatcher, data?: any) => void): void; clearEvents(eventName: any): void; hasEventListener(eventName: any): boolean; dispatchEvent(eventName: string, eventData?: any): void; }