Added unary expressions to semcheck and codegen.

This commit is contained in:
2025-01-08 22:37:48 +01:00
parent 1adb289c10
commit 4053400152
25 changed files with 149 additions and 24 deletions

7
test/unary.ink Normal file
View File

@@ -0,0 +1,7 @@
vertex vs_main :: (position : float3 @position) -> float4 @position {
return float4(position.x, position.y, position.z, 1.0);
}
pixel ps_main :: (position : float4 @outposition) -> float4 @target {
return float4(0.5, -1, 0, 1);
}