1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 16:08:50 +01:00
dxvk/src/d3d11/d3d11_present.h

46 lines
1.1 KiB
C
Raw Normal View History

#pragma once
2017-12-12 12:50:52 +01:00
#include "../dxgi/dxgi_device.h"
#include "../dxgi/dxgi_interfaces.h"
#include "../dxgi/dxgi_resource.h"
2017-12-12 12:50:52 +01:00
#include "d3d11_include.h"
namespace dxvk {
class D3D11Device;
class D3D11PresentDevice : public ComObject<IDXGIPresentDevicePrivate> {
public:
D3D11PresentDevice();
~D3D11PresentDevice();
2017-12-12 12:50:52 +01:00
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
void** ppvObject) final;
2017-12-12 12:50:52 +01:00
HRESULT STDMETHODCALLTYPE WrapSwapChainBackBuffer(
IDXGIImageResourcePrivate* pResource,
const DXGI_SWAP_CHAIN_DESC* pSwapChainDesc,
IUnknown** ppInterface) final;
2017-12-12 12:50:52 +01:00
HRESULT STDMETHODCALLTYPE FlushRenderingCommands() final;
2017-12-12 12:50:52 +01:00
HRESULT STDMETHODCALLTYPE GetDevice(
REFGUID riid,
void** ppvDevice) final;
void SetDeviceLayer(D3D11Device* pDevice) {
m_device = pDevice;
}
private:
D3D11Device* m_device = nullptr;
};
}