-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Frametime Uniforms #17155
Add Frametime Uniforms #17155
Conversation
by defining _RARCH_HAS_COREASPECT_UNIFORM early in the shader source, just after "#extension GL_GOOGLE_cpp_style_line_directive : require"
It reports CoreAspect value or 1/CoreAspect when the content is rotated by 90 or 270 deg.
…pport (was _RARCH_HAS_COREASPECT_UNIFORMS)
…lAspect, OriginlAspectRot, _HAS_ORIGINALASPECT_UNIFORMS
...how on earth did it worked for UBO !?
_HAS_ORIGINALASPECT_UNIFORMS is (#)defined and can be used to query for them.
@HyperspaceMadness Let me know what you think |
@HyperspaceMadness Any commentary on this yet? |
Looks good! One note that in the changed files the internal variables are named core_fps while the uniform is Original_FPS, it might be good to keep these consistent for code searches Great work! |
Just done. |
Looks like it's good to go @LibretroAdmin ! |
Description
This add 2 new Uniforms:
CoreFPS: the FPS reported by the core
FrameTimeDelta: The time passed between thte current and previous frame.
The define _HAS_FRAMETIME_UNIFORMS can be used by the shader to query for them
Support for glsl and Slang (tested and working on: GLCore, Vulkan, Metal, d3d10,11,12)
Reviewers
@hizzlekizzle
@HyperspaceMadness