UNPKG

@motion-core/motion-gpu

Version:

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

18 lines 763 B
import { type CurrentReadable } from './current-value.js'; import { type MotionGPUErrorReport } from './error-report.js'; import { type LoadedTexture, type TextureLoadOptions } from './texture-loader.js'; interface TextureLoadController { textures: CurrentReadable<LoadedTexture[] | null>; loading: CurrentReadable<boolean>; error: CurrentReadable<Error | null>; errorReport: CurrentReadable<MotionGPUErrorReport | null>; reload: () => Promise<void>; resume: () => void; dispose: () => void; } export declare function createTextureLoadController({ getUrls, getOptions }: { getUrls: () => string[]; getOptions: () => TextureLoadOptions; }): TextureLoadController; export {}; //# sourceMappingURL=texture-load-controller.d.ts.map