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 example for compressing bc6h #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ScanMountGoat
Copy link

This behavior makes sense but isn't very obvious. Hopefully this saves someone the pain I endured a while ago figuring out why bc6h encoding crashed or didn't work as expected. It might be a good idea to add asserts for the surface data length in the future. Messing up the stride or data length will likely result in segfaults.

Copy link
Member

@Jasper-Bekkers Jasper-Bekkers left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks! What issue did you run into?

@ScanMountGoat
Copy link
Author

When I used rgba8 data in the past, I either got an image duplicated horizontally with wrong colors (wrong bytes per pixel) or just a segfault in the kernel. I would assume intel_tex uses f16 to support HDR. f32 -> f16 -> bc6h works as expected in my image_dds crate.

@EriKWDev
Copy link

This is useful! Why no merge?

@Jasper-Bekkers
Copy link
Member

Commits aren't signed, so I can't merge them.

@Jasper-Bekkers
Copy link
Member

This is useful! Why no merge?

Fwiw - I do agree this is useful and should be merged. As soon as the commits are signed the CI and merge rules will let me merge the PR.

@ScanMountGoat ScanMountGoat reopened this Dec 18, 2024
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.

3 participants