Merge branch 'main' of git.nbross.com:nielsbross/Ink-Shader-Language

# Conflicts:
#	AST.jai
#	Check.jai
#	module.jai
This commit is contained in:
2025-09-17 12:32:47 +02:00
18 changed files with 171 additions and 94 deletions

View File

@@ -7,12 +7,21 @@
#import "File_Utilities";
/* TODO
- [ ] Remove builtin stringbuilding and replace it with ad-hoc string building when error reporting. In that case we are already building a string anyway, so we can just pass in the string builder
- [x] Remove builtin stringbuilding and replace it with ad-hoc string building when error reporting. In that case we are already building a string anyway, so we can just pass in the string builder
- [ ] Support structured buffers (ro, rw, w)
- [ ] Support mesh and amplification shaders
- [ ] Support compute shaders
- [ ] Support #if
- [x] Support #if at top level
- [x] Support #if at block level
- [ ] Remove properties block and just use hinted constant buffers instead
```
props :: constant_buffer @properties {
[...]
}
```
- [ ] while loops
- [ ] for-each loops
- [ ]
*/
add_define :: (env : *Environment, key : string) {