2018-06-11 14:29:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_include.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
class D3D11DeviceContext;
|
|
|
|
|
2021-04-30 09:52:53 +02:00
|
|
|
class D3D11UserDefinedAnnotation final : public ID3DUserDefinedAnnotation {
|
2018-06-11 14:29:47 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
D3D11UserDefinedAnnotation(D3D11DeviceContext* ctx);
|
2018-06-11 14:29:47 +02:00
|
|
|
~D3D11UserDefinedAnnotation();
|
|
|
|
|
|
|
|
ULONG STDMETHODCALLTYPE AddRef();
|
|
|
|
|
|
|
|
ULONG STDMETHODCALLTYPE Release();
|
|
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
|
|
|
INT STDMETHODCALLTYPE BeginEvent(
|
|
|
|
LPCWSTR Name);
|
|
|
|
|
|
|
|
INT STDMETHODCALLTYPE EndEvent();
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE SetMarker(
|
|
|
|
LPCWSTR Name);
|
|
|
|
|
|
|
|
BOOL STDMETHODCALLTYPE GetStatus();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
D3D11DeviceContext* m_container;
|
2018-06-11 14:29:47 +02:00
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
// Stack depth for non-finalized BeginEvent calls
|
|
|
|
int32_t m_eventDepth;
|
2018-06-11 14:29:47 +02:00
|
|
|
};
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
}
|