vkd3d: Introduce a debug helper for GPU descriptor handles.

This commit is contained in:
Henri Verbeet
2024-01-30 15:12:56 +01:00
committed by Alexandre Julliard
parent 532e902a56
commit 51cdddb961
Notes: Alexandre Julliard 2024-02-06 23:42:55 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/634
3 changed files with 14 additions and 8 deletions

View File

@@ -678,6 +678,11 @@ const char *debug_d3d12_shader_component_mapping(unsigned int mapping)
debug_d3d12_shader_component(D3D12_DECODE_SHADER_4_COMPONENT_MAPPING(3, mapping)));
}
const char *debug_gpu_handle(D3D12_GPU_DESCRIPTOR_HANDLE handle)
{
return vkd3d_dbg_sprintf("{%#"PRIx64"}", handle.ptr);
}
const char *debug_vk_extent_3d(VkExtent3D extent)
{
return vkd3d_dbg_sprintf("(%u, %u, %u)",