UNPKG

@motion-core/motion-gpu

Version:

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

15 lines (14 loc) 1.03 kB
import { defineMaterial } from "../core/material.js"; import { BlitPass } from "../passes/BlitPass.js"; import { CopyPass } from "../passes/CopyPass.js"; import { ShaderPass } from "../passes/ShaderPass.js"; import { ComputePass } from "../passes/ComputePass.js"; import { PingPongComputePass } from "../passes/PingPongComputePass.js"; import { applySchedulerPreset, captureSchedulerDebugSnapshot } from "../core/scheduler-helpers.js"; import { useMotionGPU } from "./motiongpu-context.js"; import { useFrame } from "./frame-context.js"; import { usePointer } from "./use-pointer.js"; import { useTexture } from "./use-texture.js"; import { FragCanvas } from "./index.js"; import { setMotionGPUUserContext, useMotionGPUUserContext } from "./use-motiongpu-user-context.js"; export { BlitPass, ComputePass, CopyPass, FragCanvas, PingPongComputePass, ShaderPass, applySchedulerPreset, captureSchedulerDebugSnapshot, defineMaterial, setMotionGPUUserContext, useFrame, useMotionGPU, useMotionGPUUserContext, usePointer, useTexture };