summaryrefslogtreecommitdiff
path: root/tests/reflection/thread-group-size.hlsl
blob: eb2fb98ad31bdafe6e2d26509e43e3a66ba7f1db (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE:-profile cs_5_0 -target hlsl -target reflection-json

// Confirm that we provide reflection data for the `numthreads` attribute

RWStructuredBuffer<float> b;

[numthreads(3,5,7)]
void main(uint3 tid : SV_DispatchThreadID)
{
	b[tid.x] = b[tid.x + 1] + 1.0f;
}