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

[d3d11] Add method to look up packed format

This commit is contained in:
Philip Rebohle 2019-03-26 17:19:32 +01:00
parent 6c2f16fce8
commit 7cd3e9a0d4
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 11 additions and 0 deletions

View File

@ -1319,6 +1319,13 @@ namespace dxvk {
}
DXGI_VK_FORMAT_INFO D3D11Device::LookupPackedFormat(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) const {
return m_d3d11Formats.GetPackedFormatInfo(Format, Mode);
}
DXGI_VK_FORMAT_FAMILY D3D11Device::LookupFamily(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) const {

View File

@ -303,6 +303,10 @@ namespace dxvk {
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) const;
DXGI_VK_FORMAT_INFO LookupPackedFormat(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) const;
DXGI_VK_FORMAT_FAMILY LookupFamily(
DXGI_FORMAT Format,
DXGI_VK_FORMAT_MODE Mode) const;