Deprecate properties. Use hinted cbuffers instead. This opens up to use a structured buffer in that way as well if you want instead.

This commit is contained in:
2025-09-17 12:31:37 +02:00
parent 7fefe0ecf6
commit 607a6a0bed
27 changed files with 518 additions and 629 deletions

10
test/hinted_cbuffer.ink Normal file
View File

@@ -0,0 +1,10 @@
props :: constant_buffer @properties {
projection : float4x4 @projection;
view : float4x4 @view;
}
vertex main :: (pos : float4 @position) -> float4 @position {
mv : float4 = mul(props.view, pos);
mvp : float4 = mul(props.projection, mv);
return mvp;
}