Multiple small fixes

- Foreign functions can now have names for parameters
- Fix property renaming crash
- Properly output texture sampling calls
This commit is contained in:
2024-06-28 08:56:13 +02:00
parent 402d9d67a4
commit 884444d25b
6 changed files with 319 additions and 282 deletions

View File

@@ -7,7 +7,7 @@
 color : float4 = float4(y, 1.0, 1.0, 1.0);
^
 Possible overloads:
 foreign float4 :: (float, float, float, float) -> float4; (test/wrong_type_for_function.shd:79)
 foreign float4 :: (float, float, float, float) -> float4; (test/wrong_type_for_function.shd:78)
test/wrong_type_for_function.shd:11,24: error: Type mismatch. Expected float got float2
 found: