https://github.com/shader-slang/slang
Raw File
Tip revision: b05b126e0975f84e3505b2271e06d567e1c13692 authored by Yong He on 15 August 2023, 00:58:29 UTC
Update target-deps.json (#3103)
Tip revision: b05b126
obfuscated-loc-module.slang
//TEST_IGNORE_FILE:

// obfuscated-loc-module.slang


int billy(int v)
{
    return v + 1;
}

// This function is designed to fail during IR passes/emit. 
int silly(int a)
{
    int t = 0;
    [ForceUnroll(10)]
    while ( a > 0)
    {
        t = t + t + a;
    }
    return t;
}
back to top