1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxgi] Remove SetOutputData and GetOutputData methods

This commit is contained in:
Philip Rebohle 2018-12-11 15:33:54 +01:00
parent aa2ec3f998
commit 1db3c6d883
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 0 additions and 38 deletions

View File

@ -320,31 +320,4 @@ namespace dxvk {
return m_formats.GetFormatInfo(Format, Mode);
}
HRESULT DxgiAdapter::GetOutputData(
HMONITOR Monitor,
DXGI_VK_OUTPUT_DATA* pOutputData) {
std::lock_guard<std::mutex> lock(m_outputMutex);
auto entry = m_outputData.find(Monitor);
if (entry == m_outputData.end())
return DXGI_ERROR_NOT_FOUND;
if (pOutputData == nullptr)
return S_FALSE;
*pOutputData = entry->second;
return S_OK;
}
HRESULT DxgiAdapter::SetOutputData(
HMONITOR Monitor,
const DXGI_VK_OUTPUT_DATA* pOutputData) {
std::lock_guard<std::mutex> lock(m_outputMutex);
m_outputData.insert_or_assign(Monitor, *pOutputData);
return S_OK;
}
}

View File

@ -76,14 +76,6 @@ namespace dxvk {
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode);
HRESULT GetOutputData(
HMONITOR Monitor,
DXGI_VK_OUTPUT_DATA* pOutputData);
HRESULT SetOutputData(
HMONITOR Monitor,
const DXGI_VK_OUTPUT_DATA* pOutputData);
private:
using OutputMap = std::unordered_map<HMONITOR, DXGI_VK_OUTPUT_DATA>;
@ -94,9 +86,6 @@ namespace dxvk {
DXGIVkFormatTable m_formats;
UINT64 m_memReservation[2] = { 0, 0 };
std::mutex m_outputMutex;
OutputMap m_outputData;
};
}