[d3d9] Add hidden exports for registering annotations

Adds DXVK_RegisterAnnotation at ordinal 28257 and DXVK_UnRegisterAnnotation at ordinal 28258.
This commit is contained in:
Joshua Ashton 2021-04-30 10:19:59 +01:00 committed by Philip Rebohle
parent 787a979514
commit 937a60c882
2 changed files with 13 additions and 2 deletions

View File

@ -18,5 +18,8 @@ EXPORTS
Direct3D9EnableMaximizedWindowedModeShim @36
Direct3DCreate9 @37
Direct3DCreate9Ex @38
Direct3DCreate9 @ 37
Direct3DCreate9Ex @ 38
DXVK_RegisterAnnotation @ 28257 NONAME
DXVK_UnRegisterAnnotation @ 28258 NONAME

View File

@ -90,4 +90,12 @@ extern "C" {
return 0;
}
DLLEXPORT void __stdcall DXVK_RegisterAnnotation(IDXVKUserDefinedAnnotation* annotation) {
dxvk::D3D9GlobalAnnotationList::Instance().RegisterAnnotator(annotation);
}
DLLEXPORT void __stdcall DXVK_UnRegisterAnnotation(IDXVKUserDefinedAnnotation* annotation) {
dxvk::D3D9GlobalAnnotationList::Instance().UnregisterAnnotator(annotation);
}
}