Try some things to figure out why overload resolution is broken.

This commit is contained in:
2024-06-20 07:00:46 +02:00
parent a9a67e3fac
commit 1be5072cbe
3 changed files with 72 additions and 54 deletions

View File

@@ -1,12 +1,12 @@
Camera_Data :: constant_buffer {
camera :: constant_buffer {
projection : float4x4;
view : float4x4;
}
vertex main :: (pos : float4 @position) -> float4 @position {
return mul(projection, mul(view, pos));
return mul(camera.projection, mul(camera.view, pos));
}
pixel main :: () -> float4 @target {
return float(0.5, 0.5, 0.5, 1.0);
return float4(0.5, 0.5, 0.5, 1.0);
}