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
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
runtime conditions for conditional compiling with