d3dcompiler: Print float constants with more precision.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2020-06-11 22:08:28 +02:00 committed by Alexandre Julliard
parent d51c5723c3
commit 2d79e04bfe
1 changed files with 2 additions and 2 deletions

View File

@ -1831,10 +1831,10 @@ static void debug_dump_ir_constant(const struct hlsl_ir_constant *constant)
switch (type->base_type)
{
case HLSL_TYPE_FLOAT:
wine_dbg_printf("%g ", (double)constant->value.f[y * type->dimx + x]);
wine_dbg_printf("%.8e ", constant->value.f[y * type->dimx + x]);
break;
case HLSL_TYPE_DOUBLE:
wine_dbg_printf("%g ", constant->value.d[y * type->dimx + x]);
wine_dbg_printf("%.16e ", constant->value.d[y * type->dimx + x]);
break;
case HLSL_TYPE_INT:
wine_dbg_printf("%d ", constant->value.i[y * type->dimx + x]);