@motion-core/motion-gpu
Version:
Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.
21 lines • 908 B
TypeScript
import { type InjectionKey } from 'vue';
import type { MotionGPUContext } from '../core/motiongpu-context.js';
export type { FrameProfilingSnapshot, FrameRunTimings, FrameScheduleSnapshot, MotionGPUContext, MotionGPUScheduler, MotionGPUUserContext, MotionGPUUserNamespace } from '../core/motiongpu-context.js';
/**
* Vue injection key used to expose `FragCanvas` runtime state.
*/
export declare const motionGPUContextKey: InjectionKey<MotionGPUContext>;
/**
* Registers the motiongpu context in the current Vue 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