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

62 lines
1.3 KiB
C
Raw Normal View History

2017-10-11 03:09:04 +02:00
#pragma once
#include <vector>
#include <dxvk_instance.h>
#include "dxgi_adapter.h"
namespace dxvk {
class DxgiFactory : public DxgiObject<IDXGIFactory1> {
2017-10-11 03:09:04 +02:00
public:
DxgiFactory();
~DxgiFactory();
HRESULT QueryInterface(
REFIID riid,
void** ppvObject) final;
HRESULT GetParent(
REFIID riid,
void** ppParent) final;
HRESULT CreateSoftwareAdapter(
HMODULE Module,
IDXGIAdapter** ppAdapter) final;
HRESULT CreateSwapChain(
IUnknown* pDevice,
DXGI_SWAP_CHAIN_DESC* pDesc,
IDXGISwapChain** ppSwapChain) final;
HRESULT EnumAdapters(
UINT Adapter,
IDXGIAdapter** ppAdapter) final;
HRESULT EnumAdapters1(
UINT Adapter,
IDXGIAdapter1** ppAdapter) final;
2017-10-11 03:09:04 +02:00
HRESULT GetWindowAssociation(
HWND *pWindowHandle) final;
HRESULT MakeWindowAssociation(
HWND WindowHandle,
UINT Flags) final;
BOOL IsCurrent();
2017-10-11 03:09:04 +02:00
private:
Rc<DxvkInstance> m_instance;
2017-10-11 15:31:36 +02:00
std::vector<Rc<DxvkAdapter>> m_adapters;
2017-10-11 03:09:04 +02:00
HWND m_associatedWindow = nullptr;
};
}