Module-scope WGSL for engines that own the bindings: the layout's sampling code and the shared
helpers (no bindings). Include it once per shader module, then call the function of
probeLookupFunctionWgsl. For lookups of several layouts in one module, pass all their
options at once (each piece is emitted once); the result depends only on the layouts. Each chunk
carries its markers (markedChunkWgsl), so a module that ends up with two copies (two
seams' WGSL concatenated) keeps one with dedupeWgslChunks (D4901).
Module-scope WGSL for engines that own the bindings: the layout's sampling code and the shared helpers (no bindings). Include it once per shader module, then call the function of probeLookupFunctionWgsl. For lookups of several layouts in one module, pass all their options at once (each piece is emitted once); the result depends only on the layouts. Each chunk carries its markers (markedChunkWgsl), so a module that ends up with two copies (two seams' WGSL concatenated) keeps one with
dedupeWgslChunks(D4901).