[PATCH vkd3d 2/5] tests: Add some tests for casting output arguments to functions.

Francisco Casas fcasas at codeweavers.com
Thu Feb 17 10:17:26 CST 2022


Hello,

February 16, 2022 2:47 AM, "Zebediah Figura" <zfigura at 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



More information about the wine-devel mailing list