Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.y:
- struct hlsl_resource_load_params load_params = {.type = HLSL_RESOURCE_SAMPLE_CMP};
- const struct hlsl_type *sampler_type;
- struct hlsl_ir_node *load;
- if (object_type->sampler_dim == HLSL_SAMPLER_DIM_2DMS
|| object_type->sampler_dim == HLSL_SAMPLER_DIM_2DMSARRAY)
- {
return raise_invalid_method_object_type(ctx, object_type, name, loc);
- }
- if (params->args_count < 3 || params->args_count > 5 + !!offset_dim)
- {
hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_WRONG_PARAMETER_COUNT,
"Wrong number of arguments to method '%s': expected from 2 to %u, but got %u.",
name, 4 + !!offset_dim, params->args_count);
return false;
The message here needs to be modified to match the different parameter count.