yum-mirror/slang

Making it easier to work with shaders

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

Yong HeSupport `constref` parameters passing. (#3249)b7d318f48

master
586 B11 linesraw
1result code = -1
2standard error = {
3tests/diagnostics/param-mutation.slang(17): warning 30068: mutating method 'setValue' called on `in` parameter 's'; changes will not be visible to caller. copy the parameter into a local variable if this behavior is intended
4    s.setValue(v + 1);
5              ^
6tests/diagnostics/param-mutation.slang(36): error 30067: mutating method 'setValue' called on `in` parameter 's'; changes will not be visible to caller. copy the parameter into a local variable if this behavior is intended
7    s.setValue(v + 1);
8              ^
9}
10standard output = {
11}