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

[dxgi] Remove format lookup methods from IDXGIVkAdapter interface

This commit is contained in:
Philip Rebohle 2018-11-28 19:06:34 +01:00
parent cc7f5c4bb1
commit af2f5cc77f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 1 additions and 38 deletions

View File

@ -335,13 +335,6 @@ namespace dxvk {
} }
DXGI_VK_FORMAT_FAMILY STDMETHODCALLTYPE DxgiAdapter::LookupFormatFamily(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) {
return m_formats.GetFormatFamily(Format, Mode);
}
HRESULT DxgiAdapter::GetOutputFromMonitor( HRESULT DxgiAdapter::GetOutputFromMonitor(
HMONITOR Monitor, HMONITOR Monitor,
IDXGIOutput** ppOutput) { IDXGIOutput** ppOutput) {

View File

@ -79,11 +79,7 @@ namespace dxvk {
DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE LookupFormat( DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE LookupFormat(
DXGI_FORMAT Format, DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) final; DXGI_VK_FORMAT_MODE Mode);
DXGI_VK_FORMAT_FAMILY STDMETHODCALLTYPE LookupFormatFamily(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) final;
HRESULT GetOutputFromMonitor( HRESULT GetOutputFromMonitor(
HMONITOR Monitor, HMONITOR Monitor,

View File

@ -106,32 +106,6 @@ IDXGIVkAdapter : public IDXGIAdapter3 {
IDXGIObject* pContainer, IDXGIObject* pContainer,
const dxvk::DxvkDeviceFeatures* pFeatures, const dxvk::DxvkDeviceFeatures* pFeatures,
IDXGIVkDevice** ppDevice) = 0; IDXGIVkDevice** ppDevice) = 0;
/**
* \brief Maps a DXGI format to a compatible Vulkan format
*
* For color formats, the returned Vulkan format has the
* same memory layout as the DXGI format so that it can
* be mapped and copied to buffers. For depth-stencil
* formats, this is not guaranteed.
* \param [in] format The DXGI format
* \param [in] mode Format lookup mode
* \returns Vulkan format mapping
*/
virtual dxvk::DXGI_VK_FORMAT_INFO STDMETHODCALLTYPE LookupFormat(
DXGI_FORMAT Format,
dxvk::DXGI_VK_FORMAT_MODE Mode) = 0;
/**
* \brief Queries the compatibility family of a given format
*
* \param [in] Format The DXGI format
* \param [in] Mode Format lookup mode
* \returns Format family
*/
virtual dxvk::DXGI_VK_FORMAT_FAMILY STDMETHODCALLTYPE LookupFormatFamily(
DXGI_FORMAT Format,
dxvk::DXGI_VK_FORMAT_MODE Mode) = 0;
}; };