RetroArch/gfx/drivers
Antonio Orefice da5ecaa45a
Add OriginalAspect and OriginalAspectRot uniforms (#17123)
* Initial implementation of CoreAspect uniform

* float -> float_t

* Possibly fix wii_u building

* vulkan: use float instead of float_t;

* slangp: Advertise support of CoreAspect uniform
by defining _RARCH_HAS_COREASPECT_UNIFORM early in the shader source, just after "#extension GL_GOOGLE_cpp_style_line_directive : require"

* CoreAspect + glsl fix: use glUniform1f()

* Add CoreAspectRot uniform.
It reports CoreAspect value or 1/CoreAspect when the content is rotated by 90 or 270 deg.

* Fixed stupid typo

* Just use _HAS_COREASPECT_UNIFORMS to check for CoreAspect uniforms support (was _RARCH_HAS_COREASPECT_UNIFORMS)

* Rename CoreAspect, CoreAspectRot, _HAS_COREASPECT_UNIFORMS to OriginalAspect, OriginlAspectRot, _HAS_ORIGINALASPECT_UNIFORMS

* GLCore: void Pass::build_semantic_float needs glUniform1f.
...how on earth did it worked for UBO !?

* d3d10,11,12, wrong function called by overlook.

* Add test shader, will remove that before PR

* Fix metal rotated aspect reporting

* remove test shader

* Fix C89 Build

* Use OriginalAspectRotated instead of OriginalAspectRot
2024-11-02 04:04:12 -07:00
..
ctr_shaders [3DS] Allow sideways screen rotation 2020-10-27 21:13:19 -07:00
d3d_shaders Added support for HDR shaders - if we detect a shader that uses SLANG_FORMAT_A2B10G10R10_UNORM_PACK32 or SLANG_FORMAT_R16G16B16A16_SFLOAT as the format for the last render target in the shader chain AND hdr is switched on then this disables the internal HDR shader and allows the shader chain to define an inverse tonemapper and hdr10 shader. The first use of this is for my hdr shader crt\crt-sony-pvm-4k-hdr.slangp - submitted seperately (#13390) 2021-12-22 02:17:17 +01:00
gl_shaders [VITA] Add support for Vita GLES2 (PIGLET) 2021-01-06 19:14:30 +01:00
gx2_shaders Cleanups 2023-06-01 22:52:05 +02:00
rsx_shaders (PSL1GHT) Add improvements to the RSX driver (#14965) 2023-02-10 08:29:45 +01:00
vulkan_shaders Fix typos (#17068) 2024-10-01 17:36:33 -07:00
caca_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
ctr_gfx.c Use C comments instead of C++ comments for C files 2024-07-20 16:16:16 +02:00
ctr_gu.h [3DS] Update to libctru 2.0 2020-08-26 19:08:12 -07:00
d3d8.c Silence warnings 2024-06-26 15:19:00 +02:00
d3d9_renderchain.h Append Preset (#14737) (#14757) 2022-12-22 21:36:32 +01:00
d3d9cg.c Integer overscale GPU screenshot crash fixes (#17118) 2024-10-26 06:45:45 -07:00
d3d9hlsl.c Integer overscale GPU screenshot crash fixes (#17118) 2024-10-26 06:45:45 -07:00
d3d10.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
d3d11.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
d3d12.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
dispmanx_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
drm_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
drm_pixformats.h Seems to come from here - add license text to it - 2016-07-04 15:05:50 +02:00
exynos_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
fpga_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
gdi_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
gl1.c Integer overscale GPU screenshot crash fixes (#17118) 2024-10-26 06:45:45 -07:00
gl2.c Integer overscale GPU screenshot crash fixes (#17118) 2024-10-26 06:45:45 -07:00
gl3.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
gx2_gfx.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
gx_gfx.c Silence some warnings 2024-07-20 15:46:26 +02:00
gx_gfx_vi_encoder.c Cleanups/style nits 2023-02-23 13:15:14 +01:00
metal.m Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
network_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
oga_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
omap_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
ps2_gfx.c Clean up gfx driver interface structs (#15379) 2023-06-14 04:42:34 +02:00
psp1_gfx.c Refactor viewport handling/aspect ratio scaling. 2024-06-25 08:18:39 -05:00
psp1_gfx.h Clean up trailing whitespace 2017-12-12 00:24:18 -08:00
rsx_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
sdl2_gfx.c Fixing compiler warnings (#17001) 2024-09-14 13:11:20 -07:00
sdl_dingux_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
sdl_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
sdl_rs90_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
sixel_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
sunxi_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
switch_nx_gfx.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00
vg.c Refactor viewport handling/aspect ratio scaling. 2024-06-25 08:18:39 -05:00
vga_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
vita2d_gfx.c Refactor viewport handling/aspect ratio scaling. 2024-06-25 08:18:39 -05:00
vulkan.c Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
xenon360_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
xshm_gfx.c video_frame_info - start passing flags 2023-08-16 19:17:23 +02:00
xvideo.c Fix typos (#17068) 2024-10-01 17:36:33 -07:00