Print message when registering library hooks

This commit is contained in:
baldurk
2018-07-04 16:00:12 +01:00
parent 9999ec25b8
commit 4299c29c8b
6 changed files with 12 additions and 0 deletions
+2
View File
@@ -122,6 +122,8 @@ public:
D3D11Hook() { m_InsideCreate = false; }
void RegisterHooks()
{
RDCLOG("Registering D3D11 hooks");
WrappedIDXGISwapChain4::RegisterD3DDeviceCallback(GetD3D11DeviceIfAlloc);
// also require d3dcompiler_??.dll
+2
View File
@@ -88,6 +88,8 @@ class D3D12Hook : LibraryHook
public:
void RegisterHooks()
{
RDCLOG("Registering D3D12 hooks");
WrappedIDXGISwapChain4::RegisterD3DDeviceCallback(GetD3D12DeviceIfAlloc);
// also require d3dcompiler_??.dll
+2
View File
@@ -33,6 +33,8 @@ class D3D8Hook : LibraryHook
public:
void RegisterHooks()
{
RDCLOG("Registering D3D8 hooks");
LibraryHooks::RegisterLibraryHook("d3d8.dll", NULL);
Create8.Register("d3d8.dll", "Direct3DCreate8", Create8_hook);
}
+2
View File
@@ -42,6 +42,8 @@ class D3D9Hook : LibraryHook
public:
void RegisterHooks()
{
RDCLOG("Registering D3D9 hooks");
LibraryHooks::RegisterLibraryHook("d3d9.dll", NULL);
PERF_BeginEvent.Register("d3d9.dll", "D3DPERF_BeginEvent", PERF_BeginEvent_hook);
+2
View File
@@ -74,6 +74,8 @@ class DXGIHook : LibraryHook
public:
void RegisterHooks()
{
RDCLOG("Registering DXGI hooks");
LibraryHooks::RegisterLibraryHook("dxgi.dll", NULL);
CreateDXGIFactory.Register("dxgi.dll", "CreateDXGIFactory", CreateDXGIFactory_hook);
+2
View File
@@ -50,6 +50,8 @@ class VulkanHook : LibraryHook
VulkanHook() {}
void RegisterHooks()
{
RDCLOG("Registering Vulkan hooks");
// we don't register any library or function hooks because we use the layer system
// we assume the implicit layer is registered - the UI will prompt the user about installing it.