mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-10 07:46:08 +01:00
51 lines
946 B
C
51 lines
946 B
C
|
#pragma once
|
||
|
|
||
|
#include <memory>
|
||
|
#include <vector>
|
||
|
|
||
|
#include <dxvk_adapter.h>
|
||
|
|
||
|
#include "dxgi_object.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
class DxgiFactory;
|
||
|
class DxgiOutput;
|
||
|
|
||
|
class DxgiAdapter : public DxgiObject<IDXGIAdapter> {
|
||
|
|
||
|
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;
|
||
|
|
||
|
private:
|
||
|
|
||
|
DxgiFactory* m_factory;
|
||
|
Rc<DxvkAdapter> m_adapter;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|