yum-mirror/slang

Making it easier to work with shaders

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

Ellie HermaszewskaMVP for higher order functions (#2849)332f60c19

master
271 B18 linesraw
1//DISABLE_TEST:SIMPLE:
2// Disabled because we don't actually perform this inference yet
3
4func foo(f : functype (float) -> int) -> int
5{
6    return f(0);
7}
8
9int boo<T>(T)
10{
11    return 1;
12}
13
14int zoo()
15{
16    // We should infer that we want boo<float>
17    return foo(boo);
18}