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

Refactor common code in egui-wgpu vertex shader entry points #1730

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

mitchmindtree
Copy link
Contributor

Creates unpack_color and position_from_screen functions to share common logic between the alternative vertex shader entry points. Behaviour remains the same.

I noticed these when checking the difference between vs_main and vs_conv_main in order to solve some breakage in colour output after updating from 0.15 to 0.18 (I'll open a separate issue/PR about this).

Creates `unpack_color` and `position_from_screen` functions to share
common logic between the alternative vertex shader entry points.
@mitchmindtree mitchmindtree marked this pull request as ready for review June 11, 2022 09:23
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good! But before I merge: have you tested the code?

@mitchmindtree
Copy link
Contributor Author

Yes, both entry points successfully tested with a downstream project.

@emilk emilk merged commit 7eeb292 into emilk:master Jun 11, 2022
@mitchmindtree mitchmindtree deleted the refactor-egui-wgpu-shader branch June 13, 2022 05:12
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