blob: 805c960c4b85459370c31271c16490cbf8090557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST:COMPARE_HLSL:-no-mangle -target dxbc-assembly -profile cs_5_0 -entry main
// Confirm that we properly pass along the `numthreads` attribute on an entry point.
#ifndef __SLANG__
#define b b_0
#endif
RWStructuredBuffer<float> b;
[numthreads(32,1,1)]
void main(uint3 tid : SV_DispatchThreadID)
{
b[tid.x] = b[tid.x + 1] + 1.0f;
}
|