2017-10-11 03:09:04 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <dxvk_adapter.h>
|
|
|
|
|
2017-10-11 15:31:36 +02:00
|
|
|
#include "dxgi_interfaces.h"
|
2017-10-11 03:09:04 +02:00
|
|
|
#include "dxgi_object.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
class DxgiFactory;
|
|
|
|
class DxgiOutput;
|
|
|
|
|
2017-11-27 15:51:53 +01:00
|
|
|
class DxgiAdapter : public DxgiObject<IDXGIAdapterPrivate> {
|
2017-10-11 03:09:04 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
DxgiAdapter(
|
|
|
|
DxgiFactory* factory,
|
|
|
|
const Rc<DxvkAdapter>& adapter);
|
|
|
|
~DxgiAdapter();
|
|
|
|
|
|
|
|
HRESULT QueryInterface(
|
|
|
|
REFIID riid,
|
|
|
|
void **ppvObject) final;
|
|
|
|
|
|
|
|
HRESULT GetParent(
|
|
|
|
REFIID riid,
|
|
|
|
void **ppParent) final;
|
|
|
|
|
|
|
|
HRESULT CheckInterfaceSupport(
|
|
|
|
REFGUID InterfaceName,
|
|
|
|
LARGE_INTEGER *pUMDVersion) final;
|
|
|
|
|
|
|
|
HRESULT EnumOutputs(
|
|
|
|
UINT Output,
|
|
|
|
IDXGIOutput **ppOutput) final;
|
|
|
|
|
|
|
|
HRESULT GetDesc(
|
|
|
|
DXGI_ADAPTER_DESC *pDesc) final;
|
|
|
|
|
2017-11-26 16:12:11 +01:00
|
|
|
HRESULT GetDesc1(
|
|
|
|
DXGI_ADAPTER_DESC1 *pDesc) final;
|
|
|
|
|
2017-10-11 15:31:36 +02:00
|
|
|
Rc<DxvkAdapter> GetDXVKAdapter() final;
|
|
|
|
|
2017-10-11 03:09:04 +02:00
|
|
|
private:
|
|
|
|
|
2017-10-11 15:31:36 +02:00
|
|
|
Com<DxgiFactory> m_factory;
|
|
|
|
Rc<DxvkAdapter> m_adapter;
|
2017-10-11 03:09:04 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|