Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions d3d9ex/Wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class D3D9DLL : public WrapperBase<D3D9DLL>
void (WINAPI* D3DPERF_SetOptions)(DWORD dwOptions);
void (WINAPI* D3DPERF_SetRegion)(D3DCOLOR col, LPCWSTR wszName);

HRESULT (WINAPI* DebugSetLevel)(DWORD level);
void (WINAPI* DebugSetMute)(void);

bool IsDXVK() { return m_isdxvk; }

D3D9DLL()
Expand All @@ -102,6 +105,9 @@ class D3D9DLL : public WrapperBase<D3D9DLL>
StoreAddress(&D3DPERF_SetMarker, "D3DPERF_SetMarker");
StoreAddress(&D3DPERF_SetOptions, "D3DPERF_SetOptions");
StoreAddress(&D3DPERF_SetRegion, "D3DPERF_SetRegion");

StoreAddress(&DebugSetLevel, "DebugSetLevel");
StoreAddress(&DebugSetMute, "DebugSetMute");
}

private:
Expand Down Expand Up @@ -155,4 +161,14 @@ extern "C"
{
return D3D9DLL::Get().D3DPERF_SetRegion(col, wszName);
}

HRESULT WINAPI _DebugSetLevel(DWORD level)
{
return D3D9DLL::Get().DebugSetLevel(level);
}

void WINAPI _DebugSetMute()
{
D3D9DLL::Get().DebugSetMute();
}
}
2 changes: 2 additions & 0 deletions d3d9ex/exports.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ D3DPERF_SetMarker=_D3DPERF_SetMarker @24
D3DPERF_SetOptions=_D3DPERF_SetOptions @25
D3DPERF_SetRegion=_D3DPERF_SetRegion @26

DebugSetLevel=_DebugSetLevel @27
DebugSetMute=_DebugSetMute @28