Added inferred types and missing length function.

This commit is contained in:
2025-01-10 22:44:15 +01:00
parent 8bd766281e
commit ec31046d30
16 changed files with 218 additions and 13 deletions

17
test/inferred_types.ink Normal file
View File

@@ -0,0 +1,17 @@
bar :: () -> float {
return 5.0;
}
foo :: () -> float {
return bar();
}
vertex main :: (pos : float3 @position) -> float4 @position {
f := 2.0;
i := 10;
f = foo();
v2 := float2(2, 2);
v3 := float3(2, 2, 3);
v4 := float4(4, 5, 6, 7);
return float4(1, 1, 1, 1);
}