1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00

[dxgi] Clean up DxgiAdapter

This commit is contained in:
Philip Rebohle 2018-12-11 16:03:37 +01:00
parent a29b9f6779
commit d16323f56b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 1 additions and 16 deletions

View File

@ -16,8 +16,7 @@ namespace dxvk {
DxgiFactory* factory,
const Rc<DxvkAdapter>& adapter)
: m_factory (factory),
m_adapter (adapter),
m_formats (adapter) {
m_adapter (adapter) {
}
@ -313,11 +312,4 @@ namespace dxvk {
return m_adapter;
}
DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE DxgiAdapter::LookupFormat(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) {
return m_formats.GetFormatInfo(Format, Mode);
}
}

View File

@ -72,18 +72,11 @@ namespace dxvk {
Rc<DxvkAdapter> STDMETHODCALLTYPE GetDXVKAdapter() final;
DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE LookupFormat(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode);
private:
using OutputMap = std::unordered_map<HMONITOR, DXGI_VK_OUTPUT_DATA>;
Com<DxgiFactory> m_factory;
Rc<DxvkAdapter> m_adapter;
DXGIVkFormatTable m_formats;
UINT64 m_memReservation[2] = { 0, 0 };
};