Skip to content
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 OriginalAspect and OriginalAspectRot uniforms #17123

Merged
merged 22 commits into from
Nov 2, 2024

Conversation

kokoko3k
Copy link
Contributor

@kokoko3k kokoko3k commented Oct 25, 2024

Description

Add 2 uniforms: OriginalAspect and OriginalAspectRot.

They are intended to be used by shaders when Retroarch aspect is set to something different than Core Provided.
In such scenarios, shaders have no access to what is the correct apect.

OriginalAspect reports the aspect reported by the core, while OriginalAspectRot reports 1/OriginalAspect then the content is rotated by 90° or 270°

@hizzlekizzle
Copy link
Contributor

This seems to be working as intended, and I verified that it works with d3d drivers, as well.

@HyperspaceMadness @LibretroAdmin Would either of you care to take a look?

@LibretroAdmin
Copy link
Contributor

LibretroAdmin commented Oct 30, 2024

Sure.

@HyperspaceMadness Giving you a 5 day window to let us know if you think this is good to have.

@HyperspaceMadness
Copy link
Contributor

HyperspaceMadness commented Oct 30, 2024

This looks really great @kokoko3k , my only comment would be that it might be good to have OriginalAspectRot to be renamed OriginalAspectRotated. At first glance, my first guess was that OriginalAspectRot was a uniform which told me what the rotation was versus the rotated aspect

Great work on this!

@kokoko3k
Copy link
Contributor Author

kokoko3k commented Oct 30, 2024

Done.
WebOs build is failing for unrelated issues tho (it cannot download its SDL during the build process)

@LibretroAdmin LibretroAdmin merged commit da5ecaa into libretro:master Nov 2, 2024
26 of 27 checks passed
@kokoko3k kokoko3k deleted the CoreAspect_uniform branch November 3, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants