Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl_codegen.c:
"Non-constant index in sampler resource load.");
return false;
}
var->objects_usage[regset][index].used = true;
return true;
- }
- else
- {
if (!hlsl_regset_index_from_deref(ctx, &load->resource, regset, &index))
{
hlsl_error(ctx, &instr->loc, VKD3D_SHADER_ERROR_HLSL_NONCONSTANT_INDEX,
"Non-constant index in resource load's resource.");
return false;
}
var->objects_usage[regset][index].used = true;
This is the same except for the error message. I'm not honestly sure if the difference between an sm1 sampler and and sm4 sampler is enough to justify the different error messages anyway.