HLSL: Fix #1106. Support shader setting of binding/set for $Global.
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user