On Tue Apr 18 20:16:35 2023 +0000, Henri Verbeet wrote:
+ if (!(c = hlsl_new_constant(ctx, hlsl_get_vector_type(ctx,
HLSL_TYPE_FLOAT, 4), loc)))
return false;
c->value[0].f = 255.001953f;
c->value[1].f = 255.001953f;
c->value[2].f = 255.001953f;
c->value[3].f = 255.001953f;
"255.001953f" doesn't seem quite as readable/obvious as e.g. "255.0f + (0.5f / 256.0f)".
Sure, pushed that as well.