Optional
conditionsOptional
configplugins and other configuration to use while linking
Optional
constantsHost (ts/js) provided wgsl constants.
Users can import the values from wesl code via the constants' virtual library:
import constants::num_lights;`
Optional
debugFor debug logging. Will be prepended to file paths.
Optional
libslibraries available for the link
Optional
manglerfunction to construct globally unique wgsl identifiers
Optional
rootname of root wesl module for an app, the root module normally contains the '@compute', '@vertex' or '@fragment' entry points for a library, the root module defines the public api fo the library can be specified as file path (./main.wesl), a module path (package::main), or just a module name (main)
Optional
virtualgenerate wesl from code at runtime
record of file paths and wesl text for modules.
key is module path or file path
package::foo::bar
, or './foo/bar.wesl', or './foo/bar'
value is wesl src
Only accepts unix-style, relative filesystem paths that are valid WGSL identifiers
..
, or other non-identifier symbols.
runtime conditions for conditional compiling with