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

50 lines
1.0 KiB
C
Raw Normal View History

#pragma once
#include "../dxgi/dxgi_interfaces.h"
2017-12-12 12:50:52 +01:00
#include "d3d11_include.h"
#include "d3d11_swapchain.h"
2017-12-12 12:50:52 +01:00
namespace dxvk {
class D3D11Device;
class D3D11DXGIDevice;
/**
* \brief Present device
*
* Wires up some swap chain related
* functions to the D3D11 device.
*/
class D3D11PresentDevice final : public IDXGIVkPresentDevice {
public:
D3D11PresentDevice(
D3D11DXGIDevice* pContainer,
D3D11Device* pDevice);
~D3D11PresentDevice();
ULONG STDMETHODCALLTYPE AddRef();
ULONG STDMETHODCALLTYPE Release();
2017-12-12 12:50:52 +01:00
HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
void** ppvObject);
HRESULT STDMETHODCALLTYPE CreateSwapChainForHwnd(
HWND hWnd,
const DXGI_SWAP_CHAIN_DESC1* pDesc,
IDXGIVkSwapChain** ppSwapChain);
private:
D3D11DXGIDevice* m_container;
D3D11Device* m_device;
};
}