mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-10 07:46:08 +01:00
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include <dxvk_adapter.h>
|
|
|
|
#include "dxgi_interfaces.h"
|
|
#include "dxgi_object.h"
|
|
|
|
namespace dxvk {
|
|
|
|
class DxgiFactory;
|
|
class DxgiOutput;
|
|
|
|
class DxgiAdapter : public DxgiObject<IDXGIAdapterPrivate> {
|
|
|
|
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;
|
|
|
|
HRESULT GetDesc1(
|
|
DXGI_ADAPTER_DESC1 *pDesc) final;
|
|
|
|
Rc<DxvkAdapter> GetDXVKAdapter() final;
|
|
|
|
private:
|
|
|
|
Com<DxgiFactory> m_factory;
|
|
Rc<DxvkAdapter> m_adapter;
|
|
|
|
};
|
|
|
|
}
|