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:
parent
0bc972697b
commit
d5d5c1a8bc
35
src/dxvk/dxvk_annotation.h
Normal file
35
src/dxvk/dxvk_annotation.h
Normal 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
|
Loading…
Reference in New Issue
Block a user