HLSL: Fix #1106. Support shader setting of binding/set for $Global.
This commit is contained in:
parent
fe4e572c53
commit
1b46f137f7
9 changed files with 140 additions and 2 deletions
8
Test/hlsl.attributeGlobalBuffer.frag
Normal file
8
Test/hlsl.attributeGlobalBuffer.frag
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[[vk::global_cbuffer_binding(5, 2)]]
|
||||
float4 u1;
|
||||
float4 u2;
|
||||
|
||||
float4 main() : SV_Target0
|
||||
{
|
||||
return u1 + u2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue