Function: scanWGSLInterface()
scanWGSLInterface(
source,options?):ShaderLayout|null
Defined in: lib/shader-assembly/wgsl-interface-scan.ts:41
Scans the pipeline interface needed to create a WebGPU shader layout without a full WGSL parser.
Returns null when an interface is ambiguous or uses unsupported syntax, signaling that the
caller must provide an explicit layout.
Parameters
source
string
options?
Returns
ShaderLayout | null