UNPKG

@motion-core/motion-gpu

Version:

Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.

15 lines 1.15 kB
import { type FrameCallback, type FrameKey, type FrameProfilingSnapshot, type FrameRegistry, type FrameRunTimings, type FrameScheduleSnapshot, type FrameStage, type FrameStageCallback, type FrameTask, type FrameTaskInvalidation, type FrameTaskInvalidationToken, type UseFrameOptions, type UseFrameResult } from '../core/frame-registry.js'; /** * React context container for the active frame registry. */ export declare const FrameRegistryReactContext: import("react").Context<FrameRegistry | null>; export type { FrameCallback, FrameKey, FrameProfilingSnapshot, FrameRegistry, FrameRunTimings, FrameScheduleSnapshot, FrameStage, FrameStageCallback, FrameTask, FrameTaskInvalidation, FrameTaskInvalidationToken, UseFrameOptions, UseFrameResult }; /** * Registers a frame callback using an auto-generated task key. */ export declare function useFrame(callback: FrameCallback, options?: UseFrameOptions): UseFrameResult; /** * Registers a frame callback with an explicit task key. */ export declare function useFrame(key: FrameKey, callback: FrameCallback, options?: UseFrameOptions): UseFrameResult; //# sourceMappingURL=frame-context.d.ts.map