Commit Graph

23 Commits

Author SHA1 Message Date
01ffe9c73d Properly output compiled file instead of intermediate results in semcheck 2025-08-20 21:07:14 +02:00
382d790c5b Moved more sem result into file. Still feels weird. Whole thing should just be in the file being passed around directly. 2025-08-18 22:39:45 +02:00
cd167d1560 Add missing codegen for minusequals and etc. Do proper type checking on else blocks. Spread single arg constructors not supported in hlsl. 2025-01-23 22:47:09 +01:00
42c5baa846 if else if else if if else if else 2025-01-20 22:20:47 +01:00
45ea54cf93 Fixed some error handling for invalid if statements. Started if codegen. 2025-01-18 22:22:16 +01:00
4053400152 Added unary expressions to semcheck and codegen. 2025-01-08 22:37:48 +01:00
d08529a3eb Simplification of API. 2025-01-04 23:12:54 +01:00
4deb07027f Fix some tests and do some cleanup. 2025-01-01 23:06:53 +01:00
90fb1a035e Add Properties prefix. Fix semantic check regression. 2024-09-26 16:47:34 +02:00
e365067354 Changed type var children to static array. 2024-09-25 13:01:56 +02:00
243d83663a Simplified shader test output 2024-09-20 13:00:17 +02:00
d3aa4fffeb Quick fix for binary expr codegen. Add uv hint 2024-09-11 13:21:03 +02:00
6eba51cc8c Fix position output hint. 2024-09-11 12:42:59 +02:00
ff668b6c95 Fix type checker not promoting ints. Fix some issues in the codegen. 2024-09-11 07:24:50 +02:00
b475357cf9 Fix ncore import 2024-07-17 16:24:33 +02:00
0471dbe7d7 Add nbrutil to modules. Move static array to nbrutil 2024-07-16 14:31:54 +02:00
92c1f593c2 Fixes for texture and sampler codegen
- Moved textures and samplers out of property cbuffer for hlsl
- Fixed register indices for resources
2024-07-01 07:58:13 +02:00
884444d25b Multiple small fixes
- Foreign functions can now have names for parameters
- Fix property renaming crash
- Properly output texture sampling calls
2024-06-28 08:56:13 +02:00
3bbbc1d556 Fix function overload resolution. Add static array not working. 2024-06-25 08:54:02 +02:00
d2614b3ba9 Almost fix function overloading. Return var issues. 2024-06-22 17:03:38 +02:00
262f0d632a Fix properties renaming. 2024-06-12 12:31:30 +02:00
b1dceb298f Fix erronously using the name of the properties instead of the typename for lookup 2024-06-09 22:11:56 +02:00
b81c0af596 init commit 2024-06-09 21:34:23 +02:00