1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 18:23:52 +01:00
dxvk/src/d3d11/d3d11_annotation.h

53 lines
1.3 KiB
C
Raw Normal View History

#pragma once
#include "d3d11_include.h"
2021-04-30 10:04:30 +02:00
#include "../dxvk/dxvk_annotation.h"
#include "../dxvk/dxvk_device.h"
namespace dxvk {
class D3D11DeviceContext;
2021-04-30 10:04:30 +02:00
class D3D11UserDefinedAnnotation final : public IDXVKUserDefinedAnnotation {
public:
D3D11UserDefinedAnnotation(
D3D11DeviceContext* container,
const Rc<DxvkDevice>& dxvkDevice);
~D3D11UserDefinedAnnotation();
D3D11UserDefinedAnnotation (const D3D11UserDefinedAnnotation&) = delete;
D3D11UserDefinedAnnotation& operator = (const D3D11UserDefinedAnnotation&) = delete;
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,
LPCWSTR Name);
INT STDMETHODCALLTYPE EndEvent();
void STDMETHODCALLTYPE SetMarker(
2021-04-30 10:04:30 +02:00
D3DCOLOR Color,
LPCWSTR Name);
BOOL STDMETHODCALLTYPE GetStatus();
private:
D3D11DeviceContext* m_container;
int32_t m_eventDepth;
bool m_annotationsEnabled;
};
}