OptionalconditionsOptionalconfigplugins and other configuration to use while linking
OptionalconstantsHost (ts/js) provided wgsl constants.
Users can import the values from wesl code via the constants' virtual library: import constants::num_lights;`
OptionaldebugFor debug logging. Will be prepended to file paths.
Optionallibslibraries available for the link
Optionalmanglerfunction to construct globally unique wgsl identifiers
Optionalrootname 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)
Optionalvirtualgenerate 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