Skip to main content

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?​

ScanWGSLInterfaceOptions = {}

Returns​

ShaderLayout | null