dolphin/Source/Core/VideoBackends/Vulkan
Filoppi a2702c6e27 Video: implement color correction to match the NTSC and PAL color spaces (and gamma) that GC and Wii targeted.
To further increase the accuracy of the post process phase, I've added (scRGB) HDR support, which is necessary
to fully display the PAL and NTSC-J color spaces, and also to improve the quality of post process texture samplings and
do them in linear space instead of gamma space (which is very important when playing at low resolutions).
For SDR, the quality is also slightly increased, at least if any post process runs, as the buffer is now
R10G10B10A2 (on Vulkan, DX11 and DX12) if supported; previously it was R8G8B8A8 but the alpha bits were wasted.

Gamma correction is arguably the most important thing as Dolphin on Windows outputted in "sRGB" (implicitly)
as that's what Windows expects by default, though sRGB gamma is very different from the gamma commonly used
by video standards dating to the pre HDR era (roughly gamma 2.35).

Additionally, the addition of HDR support (which is pretty straight forward and minimal), added support for
our own custom AutoHDR shaders, which would allow us to achieve decent looking HDR in Dolphin games without
having to use SpecialK or Windows 11 AutoHDR. Both of which don't necessarily play nice with older games
with strongly different and simpler lighting. HDR should also be supported in Linux.
Development of my own AutoHDR shader is almost complete and will come next.

This has been carefully tested and there should be no regression in any of the different features that Dolphin
offers, like multisampling, stereo rendering, other post processes, etc etc.

Fixes: https://bugs.dolphin-emu.org/issues/8941

Co-authored-by: EndlesslyFlowering <EndlesslyFlowering@protonmail.com>
Co-authored-by: Dogway <lin_ares@hotmail.com>
2023-06-19 01:34:42 +03:00
..
CMakeLists.txt VideoBackends:Vulkan: Allow loading custom drivers on Android 2023-06-11 13:52:34 +02:00
CommandBufferManager.cpp VideoBackends:Vulkan: Use WorkQueueThread 2023-03-20 16:40:32 +01:00
CommandBufferManager.h VideoBackends:Vulkan: Use WorkQueueThread 2023-03-20 16:40:32 +01:00
Constants.h VideoCommon: add constant value to set the allowed maximum number of pixel samplers 2023-02-10 00:46:11 -06:00
ObjectCache.cpp VideoBackends: add support to allow rendering to multiple output textures 2023-06-03 14:52:31 -05:00
ObjectCache.h VideoBackends: add support to allow rendering to multiple output textures 2023-06-03 14:52:31 -05:00
ShaderCompiler.cpp Vulkan: Enable subgroupShuffle. 2023-03-24 21:53:23 +01:00
ShaderCompiler.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
StagingBuffer.cpp VideoBackends:Vulkan: Fix incorrect barriers in StagingBuffer 2022-11-29 23:14:23 +01:00
StagingBuffer.h VideoBackends:Vulkan: Use VMA for staging buffers 2022-10-23 03:21:14 +02:00
StateTracker.cpp VideoCommon: add constant value to set the allowed maximum number of pixel samplers 2023-02-10 00:46:11 -06:00
StateTracker.h VideoCommon: add constant value to set the allowed maximum number of pixel samplers 2023-02-10 00:46:11 -06:00
VideoBackend.h VideoCommon: Pass WindowSystemInfo to InitBackendInfo 2023-06-08 22:07:39 -07:00
VKBoundingBox.cpp Implement AbstractGfx for Vulkan 2023-01-31 19:41:23 +13:00
VKBoundingBox.h Implement AbstractGfx for Vulkan 2023-01-31 19:41:23 +13:00
VKGfx.cpp Video: implement color correction to match the NTSC and PAL color spaces (and gamma) that GC and Wii targeted. 2023-06-19 01:34:42 +03:00
VKGfx.h VideoBackends: add support to allow rendering to multiple output textures 2023-06-03 14:52:31 -05:00
VKMain.cpp VideoCommon: Pass WindowSystemInfo to InitBackendInfo 2023-06-08 22:07:39 -07:00
VKPerfQuery.cpp Divide by MSAA for PerfQuery in all backends. 2023-03-14 02:13:25 +01:00
VKPerfQuery.h Add virtual Initialize() to PerfQueryBase 2023-01-31 19:41:24 +13:00
VKPipeline.cpp VideoBackends: add support to allow rendering to multiple output textures 2023-06-03 14:52:31 -05:00
VKPipeline.h VideoCommon: store the configuration used to create the AbstractPipeline on the pipeline itself, so that it's easy to duplicate pipelines with slightly altered configuration 2023-02-09 02:13:53 -06:00
VKShader.cpp VKShader: Only set shader name if supported 2022-01-31 01:17:40 -05:00
VKShader.h VideoBackends / VideoCommon: allow the ability to set debug names for shaders / textures. These names are visible in applications like RenderDoc 2021-08-30 13:47:48 -05:00
VKStreamBuffer.cpp VideoBackends:Vulkan: Use VMA for stream buffer 2022-10-23 03:21:29 +02:00
VKStreamBuffer.h VideoBackends:Vulkan: Use VMA for stream buffer 2022-10-23 03:21:29 +02:00
VKSwapChain.cpp Video: implement color correction to match the NTSC and PAL color spaces (and gamma) that GC and Wii targeted. 2023-06-19 01:34:42 +03:00
VKSwapChain.h Vulkan: Remove unused swap chain functions 2022-08-17 18:16:17 -07:00
VKTexture.cpp Video: fix Vulkan RGBA10_2 format to the actual most common one (used as swapchain format) 2023-06-18 12:58:40 +03:00
VKTexture.h VideoBackends: add support to allow rendering to multiple output textures 2023-06-03 14:52:31 -05:00
VKVertexFormat.cpp Fix build errors related to formatting non-scoped enums 2022-11-23 13:45:43 -08:00
VKVertexFormat.h Fix build errors related to formatting non-scoped enums 2022-11-23 13:45:43 -08:00
VKVertexManager.cpp Implement AbstractGfx for Vulkan 2023-01-31 19:41:23 +13:00
VKVertexManager.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
VulkanContext.cpp Video: implement color correction to match the NTSC and PAL color spaces (and gamma) that GC and Wii targeted. 2023-06-19 01:34:42 +03:00
VulkanContext.h VideoBackends:Vulkan: Replace debug_report with debug_utils 2022-12-27 02:48:50 +01:00
VulkanEntryPoints.inl VideoBackends:Vulkan: Replace debug_report with debug_utils 2022-12-27 02:48:50 +01:00
VulkanLoader.cpp VideoBackends:Vulkan: Allow loading custom drivers on Android 2023-06-11 13:52:34 +02:00
VulkanLoader.h VideoBackends:Vulkan: Allow loading custom drivers on Android 2023-06-11 13:52:34 +02:00