mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[dxgi] Clean up DxgiAdapter
This commit is contained in:
parent
a29b9f6779
commit
d16323f56b
@ -16,8 +16,7 @@ namespace dxvk {
|
|||||||
DxgiFactory* factory,
|
DxgiFactory* factory,
|
||||||
const Rc<DxvkAdapter>& adapter)
|
const Rc<DxvkAdapter>& adapter)
|
||||||
: m_factory (factory),
|
: m_factory (factory),
|
||||||
m_adapter (adapter),
|
m_adapter (adapter) {
|
||||||
m_formats (adapter) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,11 +312,4 @@ namespace dxvk {
|
|||||||
return m_adapter;
|
return m_adapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE DxgiAdapter::LookupFormat(
|
|
||||||
DXGI_FORMAT Format,
|
|
||||||
DXGI_VK_FORMAT_MODE Mode) {
|
|
||||||
return m_formats.GetFormatInfo(Format, Mode);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -72,18 +72,11 @@ namespace dxvk {
|
|||||||
|
|
||||||
Rc<DxvkAdapter> STDMETHODCALLTYPE GetDXVKAdapter() final;
|
Rc<DxvkAdapter> STDMETHODCALLTYPE GetDXVKAdapter() final;
|
||||||
|
|
||||||
DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE LookupFormat(
|
|
||||||
DXGI_FORMAT Format,
|
|
||||||
DXGI_VK_FORMAT_MODE Mode);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
using OutputMap = std::unordered_map<HMONITOR, DXGI_VK_OUTPUT_DATA>;
|
|
||||||
|
|
||||||
Com<DxgiFactory> m_factory;
|
Com<DxgiFactory> m_factory;
|
||||||
Rc<DxvkAdapter> m_adapter;
|
Rc<DxvkAdapter> m_adapter;
|
||||||
|
|
||||||
DXGIVkFormatTable m_formats;
|
|
||||||
UINT64 m_memReservation[2] = { 0, 0 };
|
UINT64 m_memReservation[2] = { 0, 0 };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user