Antonio Orefice 2a56a827e8
Add Frametime Uniforms (#17155)
* 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

* Add CoreFPS and FrameTimeDelta Uniforms.
_HAS_ORIGINALASPECT_UNIFORMS is (#)defined and can be used to query for them.

* add test shader

* remote test shader

* Wrong paste.

* gx2: use float

* wrong indentation

* resolved merge conflict

* fix indentation

* Fix comment/Formatting

* Change uniform name from CoreFPS to OriginalFPS

* underliyng references: core_fps -> original_fps
2024-11-12 19:50:59 -08:00
..
2023-01-09 00:51:05 +01:00
2024-10-01 17:36:33 -07:00
2023-06-01 20:29:05 +02:00
2023-06-01 22:52:05 +02:00
2023-06-01 22:52:05 +02:00
2020-07-07 03:02:55 +02:00
2017-12-12 00:24:18 -08:00
2021-03-31 13:13:27 +02:00
2024-10-01 17:36:33 -07:00
2024-10-01 17:36:33 -07:00
2021-09-29 17:48:58 +02:00
2021-09-26 22:28:28 +02:00
2021-03-25 16:19:42 +00:00
2023-06-01 19:59:11 +02:00
2024-03-02 09:36:17 -08:00
2024-10-01 17:36:33 -07:00
2023-06-20 12:00:17 +02:00
2019-01-17 19:39:38 -08:00