Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5 WESL Proposals #20

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
20 changes: 0 additions & 20 deletions Extends.md

This file was deleted.

12 changes: 8 additions & 4 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Glossary of WGSL Importing terms

- WESL: The extended WGSL language, and is pronounced like "weasel". Stands for WGSL Extended Shading Language
- Importable item
- Global Items:
- Structs
- Functions
- Type aliases
- [Const declarations, override declarations](https://www.w3.org/TR/WGSL/#value-decls)
- [Var declarations](https://www.w3.org/TR/WGSL/#var-decls)
- Module: A single WESL file
- Root Module: A WESL module from which compilation starts. A single project can have many root modules.
- Module Path: Hierarchical address of a module file or partial path, akin to a filesystem path
- Modules
- WESL File: A single WESL file
- Main File: A WESL file from which compilation starts. A single project can have many main files.
- WESL File Path: Hierarchical or relative address of a file, akin to a filesystem path with additional restrictions
- Namespace: Either the collection of symbols contained within the global scope, or the contents of a module
- Module: A construct appearing within a WESL file that groups global items together.
- Module Path: Hierarchical or relative address of a module. Similar in concept to accessing nested namespaces or modules in other languages.
- Side effects: WGSL code that can affect other modules when imported
- Things that are specified when [creating a WGSL pipeline](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline#fragment_object_structure)
- Shader entry-points
Expand Down
Loading