mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 00:48:44 +01:00
37 lines
696 B
C
37 lines
696 B
C
|
#pragma once
|
||
|
|
||
|
#include "d3d11_device_child.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
class D3D11Query : public D3D11DeviceChild<ID3D11Query> {
|
||
|
|
||
|
public:
|
||
|
|
||
|
D3D11Query(
|
||
|
D3D11Device* device,
|
||
|
const D3D11_QUERY_DESC& desc);
|
||
|
|
||
|
~D3D11Query();
|
||
|
|
||
|
HRESULT STDMETHODCALLTYPE QueryInterface(
|
||
|
REFIID riid,
|
||
|
void** ppvObject) final;
|
||
|
|
||
|
void STDMETHODCALLTYPE GetDevice(
|
||
|
ID3D11Device **ppDevice) final;
|
||
|
|
||
|
UINT STDMETHODCALLTYPE GetDataSize();
|
||
|
|
||
|
void STDMETHODCALLTYPE GetDesc(
|
||
|
D3D11_QUERY_DESC *pDesc) final;
|
||
|
|
||
|
private:
|
||
|
|
||
|
D3D11Device* const m_device;
|
||
|
D3D11_QUERY_DESC m_desc;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|