1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[dxvk] Define IDXVKUserDefinedAnnotation

Something common to share for perf markers between D3D9 and D3D11.

Inherits from the public D3D11 interface.
This commit is contained in:
Joshua Ashton 2021-04-30 08:59:44 +01:00 committed by Philip Rebohle
parent 0bc972697b
commit d5d5c1a8bc

View File

@ -0,0 +1,35 @@
#pragma once
#include <d3d11_1.h>
#include <d3d9.h>
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