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:
parent
a29b9f6779
commit
d16323f56b
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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 };
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user