summaryrefslogtreecommitdiff
path: root/tests/hlsl/simple/compute-numthreads.hlsl
blob: 3843c401f3c7dbb239372f7c48707307f54bab21 (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:COMPARE_HLSL: -no-checking -target dxbc-assembly -profile cs_5_0 -entry main

// Confirm that we properly pass along the `numthreads` attribute on an entry point.

RWStructuredBuffer<float> b;

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