mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Validate box in d3d12_command_list_CopyTextureRegion().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
c960e10ea5
commit
e9574e1f39
@@ -321,6 +321,16 @@ HRESULT return_interface(void *iface, REFIID iface_iid,
|
||||
return hr;
|
||||
}
|
||||
|
||||
const char *debug_d3d12_box(const D3D12_BOX *box)
|
||||
{
|
||||
if (!box)
|
||||
return "(null)";
|
||||
|
||||
return vkd3d_dbg_sprintf("(%u, %u, %u)-(%u, %u, %u)",
|
||||
box->left, box->top, box->front,
|
||||
box->right, box->bottom, box->back);
|
||||
}
|
||||
|
||||
const char *debug_vk_extent_3d(VkExtent3D extent)
|
||||
{
|
||||
return vkd3d_dbg_sprintf("(%u, %u, %u)",
|
||||
|
||||
Reference in New Issue
Block a user