[PATCH v2] wined3d: Avoid using float literals for MAX_FLOAT in GLSL when possible.

Paul Gofman gofmanp at gmail.com
Mon Apr 8 11:11:22 CDT 2019


I will make such a patch then. I would suggest to still keep constant 
values output as float in a comment to keep GLSL code readable in log.

On 4/8/19 18:19, Henri Verbeet wrote:
> I don't think special casing specific values adds much, but by itself,
> using ARB_shader_bit_encoding when available wouldn't be a bad thing.
> Note that we do something very similar for immediate values in
> shader_glsl_get_register_name(). The specific issue there was related
> to specifying floating-point specials like +/-INF or NaN.
>




More information about the wine-devel mailing list