blob: f935b8b1e63a128c0ef7a90bae8200e59963a23d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//TEST:SIMPLE(filecheck=CHECK): -entry main -target hlsl -profile cs_6_3
RWStructuredBuffer<int> output;
void main()
{
// Test that the unrolled code does not have trivial single iteration loops.
// CHECK-NOT: break
[ForceUnroll]
for (int i = 0; i < 2; i++)
{
output[i] = i;
}
}
|