yum-mirror/slang

Making it easier to work with shaders

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

jsmall-nvidiaFix for operator assignment issue (#2951)c5b0708ea

master
404 B20 linesraw
1//DIAGNOSTIC_TEST:SIMPLE:
2
3
4// Generally speaking:
5// Passing an argument for an `out` parameter such
6// that implicit conversion would be required in
7// both directions.
8//
9// But we do have special case code to handle uint/int of the same type and scalar/vector/matrix forms. 
10// So for this to fail we need to use floats or something else
11
12void a(out float x)
13{
14	x = 0;
15}
16
17void b(double y)
18{
19	a(y);
20}