RetroArch/gfx/common
MajorPainTheCactus 3c6bdfd0d8
Fixed numerous issues with HDR (#12979)
* Fix for warning and fix for incorrect comment

* Fixed contrast to be more correct - now scales from 0-10 linearly and behaves more the way you'd expect it to - changed name to ditch legacy settings users may have
Added ability to skip inverse tonemapper to the shader via the constant buffer using 'inverse_tonemap' - set to 0.0f to skip
Fixed potential bug when swapping between hdr and sdr and the bit depth not being set correctly
Fixed dx11's blend, rasterizer and topology states not being set to the sames when using hdr and leaving the menu - caused issues with PCSX2's Shadow of the Colossus
Added numerous helper functions to help create the correct values to colour the UI - normally the white UI elements should be rendered at paper white not max brightness for various reasons

* Fix stylistic issues - * Don't use camelcase for variables and function names * Use '(void)' for function declarations instead of () in C code * Declare variables at the top of a function or code block * Make sure functions that return a value always have a default return path that is not encapsulated by an else block * Use more unique names for retro_math functions which are less likely to overlap with other libraries' function symbols

Co-authored-by: twinaphex <libretro@gmail.com>
2021-09-13 16:54:50 +02:00
..
metal (Metal) Cleanups - turn function static 2021-03-21 18:10:55 +01:00
wayland qb: Allow falling back to a bundled wayland-protocols when not found. 2019-02-10 15:34:50 -08:00
angle_common.c Cleanup 2020-08-03 15:51:07 +02:00
angle_common.h Move all EGL functions to egl_common.c file 2020-01-04 19:22:02 +01:00
caca_common.h (Caca) Put everything into the struct 2020-03-07 16:42:12 +01:00
ctr_common.h Fix ram states to file when core deinit (#12956) 2021-09-08 18:01:07 +02:00
d3d8_common.c Move vulkan gpu_list to struct data 2020-08-03 15:30:46 +02:00
d3d8_common.h (D3D8/D3D9) Move static global to struct 2020-03-07 17:04:06 +01:00
d3d9_common.c Move vulkan gpu_list to struct data 2020-08-03 15:30:46 +02:00
d3d9_common.h (drivers_display) Get rid of video_frame_info argument for 2020-03-08 19:59:03 +01:00
d3d10_common.c Get rid of stale PERF_START/PERF_STOP macros in d3d files 2020-03-07 23:16:25 +01:00
d3d10_common.h (D3D) Comment out Debug functions 2021-03-23 21:24:17 +01:00
d3d11_common.c (D3D11) Look at D3D11 feature level - if we are 11.0 or above, 2021-09-03 07:51:44 +02:00
d3d11_common.h (D3D11) Look at D3D11 feature level - if we are 11.0 or above, 2021-09-03 07:51:44 +02:00
d3d12_common.c Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
d3d12_common.h Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
d3d_common.c Refactor joypad drivers 2020-08-30 05:29:32 +02:00
d3d_common.h Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
d3dcompiler_common.c Add HDR support for D3D12 (rebased PR from MajorPainTheCactus) (#12917) 2021-09-03 06:15:25 +02:00
d3dcompiler_common.h Cleanups 2018-05-12 19:24:04 +02:00
dbus_common.c Add TODO/FIXME notes 2020-07-07 03:02:55 +02:00
dbus_common.h Clean up trailing whitespace 2017-12-12 00:24:18 -08:00
drm_common.c [DRM] set the correct video mode 2021-03-31 13:13:27 +02:00
drm_common.h [DRM] set the correct video mode 2021-03-31 13:13:27 +02:00
dxgi_common.c Merge pull request #12821 from markwkidd/config_h 2021-09-10 16:59:15 +02:00
dxgi_common.h Fixed numerous issues with HDR (#12979) 2021-09-13 16:54:50 +02:00
egl_common.c Add API extension for cores to override frontend fast-forward state 2021-05-13 13:16:37 +01:00
egl_common.h (DRM/EGL) Buildfix 2020-01-06 00:33:28 +01:00
fpga_common.h (FPGA) Move regOp to struct too 2020-03-07 17:30:56 +01:00
gdi_common.h (GDI) Only render framebuffer texture when menu is enabled 2020-07-09 09:40:13 +02:00
gl1_common.h [VITA] Using a global to prevent erroneous vitaGL re-initializations. 2020-06-01 11:12:16 +02:00
gl_common.h (GL) Cleanups 2020-09-01 19:54:41 +02:00
gl_core_common.h Struct reordering, alignment 2020-09-01 19:59:56 +02:00
gx2_common.h Buildfix 2018-04-18 07:53:25 +02:00
metal_common.h improved readability for references to the platform specific metal storage mode option; removed support for btstack since its not compiling and is less relevant for the iOS platform; removed commented out code 2020-07-19 07:48:07 -10:00
metal_common.m (Apple/Metal) Combine various Metal files into one 2021-03-21 18:06:00 +01:00
network_common.h Cleanups 2020-07-18 16:54:14 +02:00
orbis_common.h Clean up white space. 2019-02-03 16:00:50 -08:00
sdl2_common.c Add OpenDingux Beta support 2021-03-25 16:19:42 +00:00
sdl2_common.h Add OpenDingux Beta support 2021-03-25 16:19:42 +00:00
sixel_common.h Cleanups 2020-07-18 16:54:14 +02:00
switch_common.h Cleanups 2020-08-03 16:33:54 +02:00
vga_common.h (VGA) Move static global variables to struct 2020-03-07 19:33:03 +01:00
vita2d_common.h Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
vita_common.h [VITA] Add support for Vita GLES2 (PIGLET) 2021-01-06 19:14:30 +01:00
vksym.h Update Vulkan 2018-05-13 21:35:18 +02:00
vulkan_common.c Add API extension for cores to override frontend fast-forward state 2021-05-13 13:16:37 +01:00
vulkan_common.h Silence LGTM static code analysis warnings 2021-03-24 00:25:47 +01:00
win32_common.c Merge pull request #12795 from sonninnos/video-rate-switch 2021-09-12 16:15:04 +02:00
win32_common.h Fixed up HDR for UWP/WinRT builds (#12936) 2021-09-04 21:13:24 +02:00
x11_common.c (X11) get_video_mode - make sure parameter does not hide global 2021-08-30 18:39:02 +02:00
x11_common.h Get rid of video_info dependency for set_video_mode 2020-03-06 22:58:12 +01:00
xinerama_common.c Add TODO/FIXME notes 2020-07-07 03:02:55 +02:00
xinerama_common.h Remove trailing blank lines. 2019-01-17 19:39:38 -08:00