yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
739c3a7b5
master
1result code = -1 2standard error = { 3tests/diagnostics/autodiff-data-flow.slang(15): error 41020: derivative cannot be propagated through call to non-forward-differentiable function `nonDiff`, use 'no_diff' to clarify intention. 4 val = nonDiff(x * 2.0f); 5 ^ 6tests/diagnostics/autodiff-data-flow.slang(28): error 30510: loops inside a differentiable function need to provide either '[MaxIters(n)]' or '[ForceUnroll]' attribute. 7 for (int i = 0; i < 5; i++) // Not ok, we can't infer the loop iterations because the body modifies induction var. 8 ^~~ 9} 10standard output = { 11}