yum-mirror/slang

Making it easier to work with shaders

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

Yong HeAdd slangc interface to compile and use ir modules. (#3615)401d8cdb1

master
295 B21 linesraw
1//TEST_IGNORE_FILE:
2
3// obfuscated-loc-module.slang
4
5
6export int billy(int v)
7{
8    return v + 1;
9}
10
11// This function is designed to fail during IR passes/emit. 
12export int silly(int a)
13{
14    int t = 0;
15    [ForceUnroll(10)]
16    while ( a > 0)
17    {
18        t = t + t + a;
19    }
20    return t;
21}