diff --git a/src/dxvk/dxvk_annotation.h b/src/dxvk/dxvk_annotation.h new file mode 100644 index 00000000..e5d1cbc7 --- /dev/null +++ b/src/dxvk/dxvk_annotation.h @@ -0,0 +1,35 @@ +#pragma once + +#include +#include + +MIDL_INTERFACE("7f2c2f72-1cc8-4979-8d9c-7e3faeddecde") +IDXVKUserDefinedAnnotation : public ID3DUserDefinedAnnotation { + +public: + + INT STDMETHODCALLTYPE BeginEvent( + LPCWSTR Name) final { + return this->BeginEvent(0, Name); + } + + void STDMETHODCALLTYPE SetMarker( + LPCWSTR Name) final { + this->SetMarker(0, Name); + } + + virtual INT STDMETHODCALLTYPE BeginEvent( + D3DCOLOR Color, + LPCWSTR Name) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + D3DCOLOR Color, + LPCWSTR Name) = 0; + +}; + +#ifdef _MSC_VER +struct __declspec(uuid("7f2c2f72-1cc8-4979-8d9c-7e3faeddecde")) IDXVKUserDefinedAnnotation; +#else +__CRT_UUID_DECL(IDXVKUserDefinedAnnotation, 0x7f2c2f72,0x1cc8,0x4979,0x8d,0x9c,0x7e,0x3f,0xae,0xdd,0xec,0xde); +#endif