Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
&& object_type->sampler_dim != HLSL_SAMPLER_DIM_2DMS && object_type->sampler_dim != HLSL_SAMPLER_DIM_2DMSARRAY) {
return add_sample_level_method_call(ctx, instrs, object, name, params, loc);
return add_sample_lod_method_call(ctx, instrs, object, name, params, loc);
- }
- else if (!strcmp(name, "SampleBias")
&& object_type->sampler_dim != HLSL_SAMPLER_DIM_2DMS
&& object_type->sampler_dim != HLSL_SAMPLER_DIM_2DMSARRAY)
- {
return add_sample_lod_method_call(ctx, instrs, object, name, params, loc);
This block could be merged too (like for `Gather`), but it's not a big deal.