@motion-core/motion-gpu
Version:
Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.
38 lines • 1.22 kB
TypeScript
/// <reference types="@webgpu/types" />
import type { ColorPipelineOptions } from './types.js';
/**
* Inputs that affect renderer pipeline compilation.
*/
export interface RendererPipelineSignatureInput {
/**
* Material pipeline signature (fragment preprocess + uniform/texture layout).
*/
materialSignature: string;
/**
* Color pipeline and HDR presentation options.
*/
color?: ColorPipelineOptions;
/**
* Adapter request options that affect the selected WebGPU adapter.
*/
adapterOptions?: GPURequestAdapterOptions;
/**
* Device descriptor that affects the requested GPUDevice.
*/
deviceDescriptor?: GPUDeviceDescriptor;
}
/**
* Returns deterministic renderer pipeline signature.
*
* Rebuild triggers:
* - material signature changes (shader/layout related)
* - color pipeline, output encoding, or HDR presentation options change
* - adapter request options or device descriptor changes
*
* Non-triggers:
* - runtime uniform values
* - runtime texture sources
* - clear color changes
*/
export declare function buildRendererPipelineSignature(input: RendererPipelineSignatureInput): string;
//# sourceMappingURL=recompile-policy.d.ts.map