Commit 7f617f3d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10: Add a debug function for D3D10_SHADER_VARIABLE_CLASS.

parent 5cefdb68
......@@ -31,6 +31,7 @@
/* TRACE helper functions */
const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type);
const char *debug_d3d10_shader_variable_class(D3D10_SHADER_VARIABLE_CLASS c);
void *d3d10_rb_alloc(size_t size);
void *d3d10_rb_realloc(void *ptr, size_t size);
......
......@@ -487,7 +487,7 @@ static HRESULT parse_fx10_type(struct d3d10_effect_type *t, const char *ptr, con
TRACE("\tcolumns: %u.\n", t->column_count);
TRACE("\trows: %u.\n", t->row_count);
TRACE("\tbasetype: %#x.\n", t->basetype);
TRACE("\tclass: %#x.\n", t->type_class);
TRACE("\tclass: %s.\n", debug_d3d10_shader_variable_class(t->type_class));
TRACE("\tunknown bits: %#x.\n", tmp & ~(D3D10_FX10_TYPE_COLUMN_MASK | D3D10_FX10_TYPE_ROW_MASK
| D3D10_FX10_TYPE_BASETYPE_MASK | D3D10_FX10_TYPE_CLASS_MASK));
}
......
/*
* Copyright 2008 Henri Verbeet for CodeWeavers
* Copyright 2008-2009 Henri Verbeet for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -40,6 +40,22 @@ const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
}
}
const char *debug_d3d10_shader_variable_class(D3D10_SHADER_VARIABLE_CLASS c)
{
switch (c)
{
WINE_D3D10_TO_STR(D3D10_SVC_SCALAR);
WINE_D3D10_TO_STR(D3D10_SVC_VECTOR);
WINE_D3D10_TO_STR(D3D10_SVC_MATRIX_ROWS);
WINE_D3D10_TO_STR(D3D10_SVC_MATRIX_COLUMNS);
WINE_D3D10_TO_STR(D3D10_SVC_OBJECT);
WINE_D3D10_TO_STR(D3D10_SVC_STRUCT);
default:
FIXME("Unrecognized D3D10_SHADER_VARIABLE_CLASS %#x.\n", c);
return "unrecognized";
}
}
#undef WINE_D3D10_TO_STR
void *d3d10_rb_alloc(size_t size)
......
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