d3dcompiler: Improve debug_hlsl_type function.

This commit is contained in:
Matteo Bruni 2012-07-11 17:27:53 +02:00 committed by Alexandre Julliard
parent 995fb30d58
commit 4a01368809
1 changed files with 5 additions and 5 deletions

View File

@ -999,16 +999,16 @@ const char *debug_hlsl_type(const struct hlsl_type *type)
return debugstr_a(type->name);
if (type->type == HLSL_CLASS_STRUCT)
name = "<anonymous struct>";
else
name = debug_base_type(type);
return "<anonymous struct>";
name = debug_base_type(type);
if (type->type == HLSL_CLASS_SCALAR)
return wine_dbg_sprintf("%s", name);
if (type->type == HLSL_CLASS_VECTOR)
return wine_dbg_sprintf("vector<%s, %u>", name, type->dimx);
return wine_dbg_sprintf("%s%u", name, type->dimx);
if (type->type == HLSL_CLASS_MATRIX)
return wine_dbg_sprintf("matrix<%s, %u, %u>", name, type->dimx, type->dimy);
return wine_dbg_sprintf("%s%ux%u", name, type->dimx, type->dimy);
return "unexpected_type";
}