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/hinted_cbuffer.ink
Normal file
10
test/hinted_cbuffer.ink
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user