Commit 4a013688 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Improve debug_hlsl_type function.

parent 995fb30d
......@@ -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";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment