SPIRV-Cross/reference/opt/shaders-hlsl/comp/ssbo-array-length.comp

18 lines
279 B
Plaintext
Raw Normal View History

2019-09-24 22:13:04 +00:00
static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
2019-05-07 13:49:38 +00:00
RWByteAddressBuffer _11 : register(u1);
void comp_main()
{
uint _14;
_11.GetDimensions(_14);
_14 = (_14 - 16) / 16;
_11.Store(0, uint(int(_14)));
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}