yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeFix single iteration loop detection logic. (#3287)e04abb54b

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