From fcf83dbf9effab3bd98bad2b83b2468b7eb05cfd Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 9 Jun 2017 11:34:21 -0700 Subject: Initial import of code. --- tests/hlsl/simple/compute-numthreads.hlsl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/hlsl/simple/compute-numthreads.hlsl (limited to 'tests/hlsl/simple') diff --git a/tests/hlsl/simple/compute-numthreads.hlsl b/tests/hlsl/simple/compute-numthreads.hlsl new file mode 100644 index 000000000..3843c401f --- /dev/null +++ b/tests/hlsl/simple/compute-numthreads.hlsl @@ -0,0 +1,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 b; + +[numthreads(32,1,1)] +void main(uint3 tid : SV_DispatchThreadID) +{ + b[tid.x] = b[tid.x + 1] + 1.0f; +} \ No newline at end of file -- cgit v1.2.3