[PATCH vkd3d 5/5] vkd3d-shader/hlsl: Parse the Sample() method.

Giovanni Mascellani gmascellani at codeweavers.com
Tue Nov 2 09:04:39 CDT 2021


Hi,

On 02/11/21 01:43, Zebediah Figura wrote:
> +        if (!(coords = add_implicit_conversion(ctx, instrs, params->args[1],
> +                ctx->builtin_types.vector[HLSL_TYPE_FLOAT][sampler_dim - 1], loc)))
> +            coords = params->args[1];

I would suggest to use the hlsl_get_vector_type helper.

Thanks, Giovanni.



More information about the wine-devel mailing list