Signed-off-by: Isabella Bosia ibosia@codeweavers.com --- libs/vkd3d-shader/trace.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/libs/vkd3d-shader/trace.c b/libs/vkd3d-shader/trace.c index 1e1f819..587c85c 100644 --- a/libs/vkd3d-shader/trace.c +++ b/libs/vkd3d-shader/trace.c @@ -530,21 +530,24 @@ static void shader_dump_data_type(struct vkd3d_string_buffer *buffer, enum vkd3d { static const char *const data_type_names[] = { - /* VKD3D_DATA_FLOAT */ "(float)", - /* VKD3D_DATA_INT */ "(int)", - /* VKD3D_DATA_RESOURCE */ "(resource)", - /* VKD3D_DATA_SAMPLER */ "(sampler)", - /* VKD3D_DATA_UAV */ "(uav)", - /* VKD3D_DATA_UINT */ "(uint)", - /* VKD3D_DATA_UNORM */ "(unorm)", - /* VKD3D_DATA_SNORM */ "(snorm)", - /* VKD3D_DATA_OPAQUE */ "(opaque)", + /* VKD3D_DATA_FLOAT */ "float", + /* VKD3D_DATA_INT */ "int", + /* VKD3D_DATA_RESOURCE */ "resource", + /* VKD3D_DATA_SAMPLER */ "sampler", + /* VKD3D_DATA_UAV */ "uav", + /* VKD3D_DATA_UINT */ "uint", + /* VKD3D_DATA_UNORM */ "unorm", + /* VKD3D_DATA_SNORM */ "snorm", + /* VKD3D_DATA_OPAQUE */ "opaque", }; + const char *name;
if (type <= ARRAY_SIZE(data_type_names)) - shader_addline(buffer, "%s", data_type_names[type]); + name = data_type_names[type]; else - shader_addline(buffer, "(unknown)"); + name = "unknown"; + + shader_addline(buffer, "(%s,%s,%s,%s)", name, name, name, name); }
static void shader_dump_decl_usage(struct vkd3d_string_buffer *buffer,