yum-mirror/slang

Making it easier to work with shaders

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

Julius IkkalaAdd a more specific diagnostic message when passing concrete value to interface-typed output parameter (#6788)88a180ba0

master
447 B8 linesraw
1result code = -1
2standard error = {
3tests/diagnostics/concrete-argument-to-output-interface.slang(48): error 30077: argument passed to parameter 'x' is of concrete type 'MyThing', but interface-typed output parameters require interface-typed arguments. To allow passing a concrete type to this function, you can replace 'IThing x' with a generic 'T x' and a 'where T : IThing' constraint.
4    f(concrete); // ERROR!
5     ^
6}
7standard output = {
8}