More extension bike shedding.

This commit is contained in:
2025-01-01 23:14:30 +01:00
parent 4deb07027f
commit 7787d1307b
47 changed files with 137 additions and 137 deletions

14
test/constant_buffer.ink Normal file
View File

@@ -0,0 +1,14 @@
camera :: constant_buffer {
projection : float4x4;
view : float4x4;
}
vertex main :: (pos : float4 @position) -> float4 @position {
mv : float4 = mul(camera.view, pos);
mvp : float4 = mul(camera.projection, mv);
return mvp;
}
pixel main :: () -> float4 @target {
return float4(0.5, 0.5, 0.5, 1.0);
}