mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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 });
|
formats.push_back({ VK_FORMAT_B8G8R8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
|
||||||
} break;
|
} 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:
|
default:
|
||||||
Logger::warn(str::format("DxgiPresenter: Unknown format: ", fmt));
|
Logger::warn(str::format("DxgiPresenter: Unknown format: ", fmt));
|
||||||
}
|
}
|
||||||
|
@ -331,9 +331,9 @@ namespace dxvk {
|
|||||||
VkDeviceSize numBytes) {
|
VkDeviceSize numBytes) {
|
||||||
if (numBytes == 0)
|
if (numBytes == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this->renderPassEnd();
|
this->renderPassEnd();
|
||||||
|
|
||||||
auto dstSlice = dstBuffer->subSlice(dstOffset, numBytes);
|
auto dstSlice = dstBuffer->subSlice(dstOffset, numBytes);
|
||||||
auto srcSlice = srcBuffer->subSlice(srcOffset, numBytes);
|
auto srcSlice = srcBuffer->subSlice(srcOffset, numBytes);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user