yum-mirror/slang

Making it easier to work with shaders

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

Yong HeMiscellaneous backward autodiff fixes. (#2665)47715e625

master
559 B11 linesraw
1result code = -1
2standard error = {
3tests/diagnostics/autodiff-data-flow-2.slang(17): error 41020: derivative cannot be propagated through call to non-backward-differentiable function `f`, use 'no_diff' to clarify intention.
4    float val = f(x + 1); // Error: f must also be backward-differentiable
5                 ^
6tests/diagnostics/autodiff-data-flow-2.slang(29): error 30510: loops inside a differentiable function need to provide either '[MaxIters(n)]' or '[ForceUnroll]' attribute.
7    for (int i = 0; i < (int)x; i++)
8    ^~~
9}
10standard output = {
11}