mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +01:00
[dxgi] Support more formats in the presenter
Should surpress "Unsupported format" warnings in games based on Unreal Engine 4 and Frostbite Engine.
This commit is contained in:
parent
608cd33a25
commit
3b43c1c183
@ -320,6 +320,15 @@ namespace dxvk {
|
||||
formats.push_back({ VK_FORMAT_B8G8R8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
|
||||
} break;
|
||||
|
||||
case DXGI_FORMAT_R10G10B10A2_UNORM: {
|
||||
formats.push_back({ VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
|
||||
formats.push_back({ VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
|
||||
} break;
|
||||
|
||||
case DXGI_FORMAT_R16G16B16A16_FLOAT: {
|
||||
formats.push_back({ VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
|
||||
} break;
|
||||
|
||||
default:
|
||||
Logger::warn(str::format("DxgiPresenter: Unknown format: ", fmt));
|
||||
}
|
||||
|
@ -331,9 +331,9 @@ namespace dxvk {
|
||||
VkDeviceSize numBytes) {
|
||||
if (numBytes == 0)
|
||||
return;
|
||||
|
||||
|
||||
this->renderPassEnd();
|
||||
|
||||
|
||||
auto dstSlice = dstBuffer->subSlice(dstOffset, numBytes);
|
||||
auto srcSlice = srcBuffer->subSlice(srcOffset, numBytes);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user