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

Update color byte packing #758

Merged

Conversation

waywardmonkeys
Copy link
Contributor

Colors are now packed in little-endian u32s rather than big-endian which lets us get rid of some swizzling within the shaders.

We also get to take advantage of the new to_u8_array functions to simplify the image creation for some tests.

Colors are now packed in little-endian u32s rather than big-endian
which lets us get rid of some swizzling within the shaders.

We also get to take advantage of the new `to_u8_array` functions
to simplify the image creation for some tests.
Copy link
Contributor

@raphlinus raphlinus left a comment

Choose a reason for hiding this comment

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

Yes, this is better, thanks. Probably something will break somewhere, but at least we'll be able to see

@waywardmonkeys
Copy link
Contributor Author

If anything breaks, then it'll just be another step towards having consistent color byte encoding!

@waywardmonkeys waywardmonkeys added this pull request to the merge queue Dec 1, 2024
Merged via the queue into linebender:main with commit 36824fe Dec 1, 2024
17 checks passed
@waywardmonkeys waywardmonkeys deleted the update-color-byte-packing branch December 1, 2024 23:32
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