1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxgi] Allow creating R16_SFLOAT views for D16_UNORM images

Just use R16_UNORM. For some reason, D3D11 actually allows this, and
Trine 4 wants the corresponding calls to succeed, although we're going
to interpret the data as UNORM rather than FLOAT.
This commit is contained in:
Philip Rebohle 2020-11-20 17:14:41 +01:00
parent 85f36c3072
commit d0cdd79dd2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -263,7 +263,7 @@ namespace dxvk {
VK_FORMAT_R16_UINT },
// DXGI_FORMAT_R16_FLOAT
{ VK_FORMAT_R16_SFLOAT,
VK_FORMAT_UNDEFINED,
VK_FORMAT_D16_UNORM,
VK_FORMAT_R16_UINT,
VK_IMAGE_ASPECT_COLOR_BIT },
// DXGI_FORMAT_D16_UNORM