diff --git a/src/d3d9/d3d9.def b/src/d3d9/d3d9.def index 6829b1942..50e2eb08a 100644 --- a/src/d3d9/d3d9.def +++ b/src/d3d9/d3d9.def @@ -18,5 +18,8 @@ EXPORTS Direct3D9EnableMaximizedWindowedModeShim @36 - Direct3DCreate9 @37 - Direct3DCreate9Ex @38 + Direct3DCreate9 @ 37 + Direct3DCreate9Ex @ 38 + + DXVK_RegisterAnnotation @ 28257 NONAME + DXVK_UnRegisterAnnotation @ 28258 NONAME diff --git a/src/d3d9/d3d9_main.cpp b/src/d3d9/d3d9_main.cpp index 102a8a7f6..b6e959dd2 100644 --- a/src/d3d9/d3d9_main.cpp +++ b/src/d3d9/d3d9_main.cpp @@ -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); + } + }