@motion-core/motion-gpu
Version:
Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.
16 lines • 724 B
TypeScript
import type { MotionGPUContext } from '../core/motiongpu-context.js';
export type { FrameProfilingSnapshot, FrameRunTimings, FrameScheduleSnapshot, MotionGPUContext, MotionGPUScheduler, MotionGPUUserContext, MotionGPUUserNamespace } from '../core/motiongpu-context.js';
/**
* Registers the motiongpu context in the current Svelte component tree.
*
* @param context - Context payload to provide.
*/
export declare function provideMotionGPUContext(context: MotionGPUContext): void;
/**
* Returns the active motiongpu context.
*
* @returns Active context.
* @throws {Error} When called outside `<FragCanvas>`.
*/
export declare function useMotionGPU(): MotionGPUContext;
//# sourceMappingURL=motiongpu-context.d.ts.map