summaryrefslogtreecommitdiffstats
path: root/tests/reflection/thread-group-size.hlsl
blob: 13b3148d8956d1d1dd294ca0dba290b80616dbde (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:REFLECTION:-profile cs_5_0 -target hlsl -no-codegen

// 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;
}