mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Print message when registering library hooks
This commit is contained in:
@@ -122,6 +122,8 @@ public:
|
||||
D3D11Hook() { m_InsideCreate = false; }
|
||||
void RegisterHooks()
|
||||
{
|
||||
RDCLOG("Registering D3D11 hooks");
|
||||
|
||||
WrappedIDXGISwapChain4::RegisterD3DDeviceCallback(GetD3D11DeviceIfAlloc);
|
||||
|
||||
// also require d3dcompiler_??.dll
|
||||
|
||||
@@ -88,6 +88,8 @@ class D3D12Hook : LibraryHook
|
||||
public:
|
||||
void RegisterHooks()
|
||||
{
|
||||
RDCLOG("Registering D3D12 hooks");
|
||||
|
||||
WrappedIDXGISwapChain4::RegisterD3DDeviceCallback(GetD3D12DeviceIfAlloc);
|
||||
|
||||
// also require d3dcompiler_??.dll
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user