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

View File

@@ -0,0 +1,10 @@
(program
(constant_buffer props (@properties)
[(:= projection float4x4 (@projection))
(:= view float4x4 (@view))])
(fun vertex vs_main -> float4 (@position)
[(:= pos float4 (@position))]
(:= mv float4 (mul props.view pos))
(:= mvp float4 (mul props.projection mv))
(return mvp)))