2018-06-11 14:29:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "d3d11_include.h"
|
2021-04-30 10:04:30 +02:00
|
|
|
#include "../dxvk/dxvk_annotation.h"
|
2018-06-11 14:29:47 +02:00
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
class D3D11DeviceContext;
|
|
|
|
|
2021-04-30 10:04:30 +02:00
|
|
|
class D3D11UserDefinedAnnotation final : public IDXVKUserDefinedAnnotation {
|
2018-06-11 14:29:47 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2021-04-01 21:16:44 +02:00
|
|
|
D3D11UserDefinedAnnotation(D3D11DeviceContext* ctx);
|
2021-04-30 11:32:10 +02:00
|
|
|
D3D11UserDefinedAnnotation(const D3D11UserDefinedAnnotation&);
|
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(
|
2021-04-30 10:04:30 +02:00
|
|
|
D3DCOLOR Color,
|
2018-06-11 14:29:47 +02:00
|
|
|
LPCWSTR Name);
|
|
|
|
|
|
|
|
INT STDMETHODCALLTYPE EndEvent();
|
|
|
|
|
|
|
|
void STDMETHODCALLTYPE SetMarker(
|
2021-04-30 10:04:30 +02:00
|
|
|
D3DCOLOR Color,
|
2018-06-11 14:29:47 +02:00
|
|
|
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
|
|
|
}
|