UNPKG

@motion-core/motion-gpu

Version:

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

16 lines 1.07 kB
import { builtInRenderPassBrand, type BuiltInRenderPassFormatContract } from './pass-brand.js'; import type { AnyPass, ComputePassLike, PingPongShaderPassLike, RenderPass } from './types.js'; /** Reports whether a value is a renderer-managed compute pass. */ export declare function isManagedComputePass(value: unknown): value is ComputePassLike; /** Reports whether a value is a renderer-managed fragment-feedback pass. */ export declare function isManagedFeedbackPass(value: unknown): value is PingPongShaderPassLike; /** Reports whether a render pass is a MotionGPU built-in with a known format contract. */ export declare function isBuiltInRenderPass(value: unknown): value is RenderPass & { readonly [builtInRenderPassBrand]: BuiltInRenderPassFormatContract; }; /** * Validates the public JavaScript boundary before a pass enters graph planning. * Compute and feedback passes are nominal; custom render passes remain structural. */ export declare function assertMotionGPUPass(value: unknown): asserts value is AnyPass; //# sourceMappingURL=pass-contract.d.ts.map