17 Feb
2022
17 Feb
'22
4:17 p.m.
Hello, February 16, 2022 2:47 AM, "Zebediah Figura" <zfigura(a)codeweavers.com> wrote:
+ +% You can't cast an inout parameter, though. + +[pixel shader fail] + +void func(inout float4 a) +{ + a += 0.1; +} + +float4 main(uniform int4 i) : sv_target +{ + int4 x = i; + func((float4)x); + return x; +} -- 2.34.1
For some reason the shader actually compiles using ps_3_0 and lower. Maybe a [require] should be added? Or maybe, we should just allow it always. Thanks, Francisco