Hi,
On 17/12/21 20:12, Francisco Casas wrote:
@@ -1917,9 +1916,16 @@ static bool add_method_call(struct hlsl_ctx *ctx, struct list *instrs, struct hl hlsl_get_vector_type(ctx, HLSL_TYPE_FLOAT, sampler_dim), loc))) coords = params->args[1];
if (params->args_count == 3)
{
if (!(offset = add_implicit_conversion(ctx, instrs, params->args[2],
hlsl_get_vector_type(ctx, HLSL_TYPE_INT, sampler_dim), loc)))
offset = params->args[2];
}
I don't understand the point of "offset = params->args[2]" is the implicit conversion fails. Can that failure be recovered later? If not (and we are assigning something to offset just to keep compiling and produce as much diagnostics as we can), then I'd rather assign NULL to avoid further problems. Am I missing something?
Thanks, Giovanni.