mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d: Allow writing log output via a custom callback.
When using PE vkd3d through Wine, debug output may be swallowed by writing to Win32 stderr. Avoid this by providing a way to hook up vkd3d log output to Wine output. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@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
174172887b
commit
46b1266809
@@ -22,6 +22,7 @@ global:
|
||||
vkd3d_resource_incref;
|
||||
vkd3d_serialize_root_signature;
|
||||
vkd3d_serialize_versioned_root_signature;
|
||||
vkd3d_set_log_callback;
|
||||
|
||||
local: *;
|
||||
};
|
||||
|
@@ -510,3 +510,9 @@ HRESULT vkd3d_serialize_versioned_root_signature(const D3D12_VERSIONED_ROOT_SIGN
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
void vkd3d_set_log_callback(PFN_vkd3d_log callback)
|
||||
{
|
||||
vkd3d_shader_set_log_callback(callback);
|
||||
vkd3d_dbg_set_log_callback(callback);
|
||||
}
|
||||
|
Reference in New Issue
Block a user