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

43 lines
883 B
C
Raw Normal View History

#pragma once
#include "d3d11_include.h"
namespace dxvk {
class D3D11DeviceContext;
class D3D11UserDefinedAnnotation final : public ID3DUserDefinedAnnotation {
public:
D3D11UserDefinedAnnotation(D3D11DeviceContext* ctx);
~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:
D3D11DeviceContext* m_container;
// Stack depth for non-finalized BeginEvent calls
int32_t m_eventDepth;
};
}