blob: ba18a8d1615d7b78b3053766c76691d8c7019ceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//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.
RWStructuredBuffer<float> b;
[numthreads(32,1,1)]
void main(uint3 tid : SV_DispatchThreadID)
{
b[tid.x] = b[tid.x + 1] + 1.0f;
}
|