@motion-core/motion-gpu
Version:
Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.
99 lines (98 loc) • 2.52 kB
text/typescript
/**
* Framework-agnostic MotionGPU core entrypoint.
*
* This surface is intended for building framework adapters (Svelte/React/Vue).
*/
export { defineMaterial, resolveMaterial } from './material.js';
export { toMotionGPUErrorReport } from './error-report.js';
export { createCurrentWritable } from './current-value.js';
export { createFrameRegistry } from './frame-registry.js';
export { createMotionGPURuntimeLoop } from './runtime-loop.js';
export { loadTexturesFromUrls } from './texture-loader.js';
export {
BlitPass,
CopyPass,
ShaderPass,
ComputePass,
PingPongComputePass
} from '../passes/index.js';
export type { CurrentReadable, CurrentWritable, Subscribable } from './current-value.js';
export type {
MotionGPUErrorCode,
MotionGPUErrorContext,
MotionGPUErrorPhase,
MotionGPUErrorReport,
MotionGPUErrorSeverity,
MotionGPUErrorSource,
MotionGPUErrorSourceLine
} from './error-report.js';
export type {
FrameCallback,
FrameKey,
FrameProfilingSnapshot,
FrameRegistry,
FrameRunTimings,
FrameScheduleSnapshot,
FrameStage,
FrameStageCallback,
FrameTask,
FrameTaskInvalidation,
FrameTaskInvalidationToken,
FrameTimingStats,
UseFrameOptions,
UseFrameResult
} from './frame-registry.js';
export type {
FragMaterial,
FragMaterialInput,
MaterialDefineValue,
MaterialDefines,
MaterialIncludes,
ResolvedMaterial,
TypedMaterialDefineValue
} from './material.js';
export type { MotionGPURuntimeLoop, MotionGPURuntimeLoopOptions } from './runtime-loop.js';
export type { LoadedTexture, TextureDecodeOptions, TextureLoadOptions } from './texture-loader.js';
export type {
FrameInvalidationToken,
FrameState,
OutputEncoding,
ToneMapping,
OutputDynamicRange,
CanvasColorSpace,
ColorPipelineOptions,
AnyPass,
ComputePassLike,
RenderPass,
RenderPassContext,
RenderPassFlags,
RenderPassInputSlot,
RenderPassOutputSlot,
RenderMode,
RenderTarget,
RenderTargetDefinition,
RenderTargetDefinitionMap,
TextureData,
TextureDefinition,
TextureDefinitionMap,
TextureMap,
TextureSource,
TextureUpdateMode,
TextureValue,
TypedUniform,
UniformLayout,
UniformLayoutEntry,
UniformMap,
UniformMat4Value,
UniformType,
UniformValue
} from './types.js';
export type {
StorageBufferAccess,
StorageBufferDefinition,
StorageBufferDefinitionMap,
StorageBufferType,
ComputePassContext
} from './types.js';
export type { ComputePassOptions, ComputeDispatchContext } from '../passes/ComputePass.js';
export type { PingPongComputePassOptions } from '../passes/PingPongComputePass.js';