Compiler2 min read

Module APIs

Generated API reference for the standard BWSL modules.

Reading Time
2 min
Word Count
214
Sections
0
Try It Live

Turn the guide into code

Take the key idea from this page into the playground and validate it in a real shader instead of leaving it as theory.

Open Playground

These pages are generated from the module source files in the compiler repository. Modules are file-scope declarations and may live in module-only files or next to pipelines. Import a module with import Name, optionally alias it with import Name as Alias, then access exported members with Name::member or Alias::member. Use using Name only when an imported module should contribute functions and constants to unqualified lookup.