/** * @file kernels.ts * @brief GLSL ES 3.00 programs specialized by material and geometry features. * @details Framebuffer coordinates are y-up; material distances are measured in points. */ export declare const FULL_VERTEX: string; export declare const SHAPE_VERTEX: string; export declare const GRID_VERTEX: string; export declare function shapeVertex(grid: boolean, nativeY?: boolean): string; /** Float world positions retain the original vertex projection and interpolation context. */ export declare function worldVertex(rim?: boolean): string; export declare const RIM_VERTEX: string; export declare const PRESENT_FRAGMENT: string; export declare const SPLIT_FRAGMENT: string; export declare const BUILD_VERTEX: string; export declare const CAPTURE_FRAGMENT: string; export declare const FIRST_MIP_FRAGMENT: string; export declare const DOWNSAMPLE_FRAGMENT: string; export declare const FIRST_MIP_FRAGMENT_8: string; export declare const DOWNSAMPLE_FRAGMENT_8: string; export declare const LUMA_VERTEX: string; export declare const LUMA_FRAGMENT: string; export declare const MASK_COPY_FRAGMENT: string; export declare const FIELD_SEED_FRAGMENT: string; export declare const FIELD_JUMP_FRAGMENT: string; export declare const FIELD_ENCODING: string; export declare const FIELD_DISTANCE_FRAGMENT: string; export declare const FIELD_BLUR_FRAGMENT: string; export declare const FIELD_NORMAL_FRAGMENT: string; /** * @brief Fragment source of the glass program for a key: feature bits plus the member count of a * union above them. * @details With a member count, UNEVEN and FIELD mean that some members have corners of their own * or a mask outline; the count is a bound, the block gives the members in use. The veil and the * layer opacity come from the block at run time, so they need no program of their own; `fade` * false leaves the opacity to a later composite. */ export declare function glassFragment(key: number, edr?: boolean, hdr?: boolean, blend?: boolean, nativeY?: boolean, worldY?: boolean, fade?: boolean): string; /** @brief `source` with its first `piece` replaced by `by`, or a source naming the piece when it is missing. */ export declare function patch(source: string, piece: string, by: string): string; /** @brief `source` with every `piece` replaced by `by`, or a source naming the piece when there is none. */ export declare function patchAll(source: string, piece: string, by: string): string; /** @brief Whether a source built here lost a piece it is cut or patched at. */ export declare function brokenSource(source: string): boolean; /** Rim on the current opaque scene. Geometry and light helpers share the shape feature specialization. */ export declare function rimFragment(key: number, edr?: boolean, hdr?: boolean, worldY?: boolean): string; /** Background source RGBA on a transparent group, before any foreground layer or rim. */ export declare function groupBodyFragment(key: number, edr?: boolean, hdr?: boolean, worldY?: boolean): string; /** Premultiplied rim over group RGBA; native matrices keep the destination alpha column. */ export declare function groupRimFragment(key: number, edr?: boolean, hdr?: boolean, worldY?: boolean): string; export declare const GROUP_VERTEX: string; /** SDF fill coverage of the separate tint pass. Its scalar output also supplies an opaque white mask. */ export declare function sdfFillMaskFragment(key: number): string; /** Independent foreground output using the same tint operation as the public body path. */ export declare function tintForegroundFragment(key: number, separateMask?: boolean, compositeBackdrop?: boolean, nativeFillRows?: boolean): string; /** Complete an independently generated foreground over the current opaque scene. */ export declare function tintCompositeFragment(premultiplied?: boolean): string; /** Generic/MRT keeps the source alpha store; explicit fixed-kernel controls may fuse its inverse. */ export declare function groupCompositeFragment(fusedInverse?: boolean): string;