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

Pass output dimensions to Direct3D shaders #5161

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Pass output dimensions to Direct3D shaders #5161

merged 2 commits into from
Aug 9, 2024

Conversation

RibShark
Copy link
Contributor

@RibShark RibShark commented Aug 8, 2024

This PR passes the final output dimensions of the image to shaders, allowing for shaders to adjust scaling parameters automatically when needed.

What issue(s) does this PR address?

None.

Does this PR introduce new feature(s)?

Yes, it adds an OUTPUTDIMS parameter to the D3D scaling effect, which contains the final (after all scaling has been performed) dimensions of the image.

Does this PR introduce any breaking change(s)?

No, existing shaders should function identically to before.

Additional information

Added this primarily so that a sharp-bilinear shader is feasible on Direct3D.

@joncampbell123 joncampbell123 merged commit a0cb4d3 into joncampbell123:master Aug 9, 2024
19 of 20 checks passed
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.

2 participants