import type { MetalBindingMapping } from "./uniforms.js"; import type { MetalStorageBufferSizes } from "../index.js"; export { compilerIdentity, semanticContract, translationContract, } from "./identity.js"; export interface InterfaceValue { type: { scalar: string; width: number; }; invariant: boolean; location?: number; builtin?: string; interpolation?: { type: string; sampling: string; }; blendSource?: number; } export interface ShaderInterface { kind: "vertex" | "fragment" | "compute"; inputs: InterfaceValue[]; outputs: InterfaceValue[]; } export interface WorkgroupSize { x: number; y: number; z: number; } export type ExtractedEntry = { wgsl: string; semanticInterface: ShaderInterface; bindings: string[]; samplingPairs: unknown[]; overrides: string[]; } & ({ stage: "vertex" | "fragment"; } | { stage: "compute"; workgroupSize: WorkgroupSize; }); export interface SemanticResult { entryPoints: ExtractedEntry[]; bindings: unknown[]; overrides: unknown[]; types: Record; layouts: Record; } export declare function encodeRequest(request: unknown, kind: "semantic" | "translation"): string; export declare function checkedSemanticResult(response: unknown, requestBytes: string, selected: readonly { stage: string; wgsl: string; }[]): SemanticResult; export declare function checkedTranslation(response: unknown, entryPoint: { stage: string; wgsl: string; metal: string; }, semanticInterface: ShaderInterface, expectedBindings?: readonly MetalBindingMapping[], compute?: { workgroupSize: WorkgroupSize; hasRuntimeStorage: boolean; }): { msl: string; entryPoint: typeof entryPoint; internalBindings: unknown[]; storageBufferSizeRegions: unknown[]; internalData: MetalStorageBufferSizes[]; }; //# sourceMappingURL=protocol.d.ts.map