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:
10
test/parse/hinted_cbuffer.golden
Normal file
10
test/parse/hinted_cbuffer.golden
Normal 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)))
|
||||
Reference in New Issue
Block a user