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

MVKPixelFormats: Add support for more B8G8R8A8 formats using swizzle. #2405

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

squidbus
Copy link
Contributor

@squidbus squidbus commented Dec 8, 2024

Similar to #2383, adds support for some more B8G8R8A8 formats using swizzle.

I've tested this with B8G8R8A8 storage images in shadPS4. We don't have proper support for emulating arbitrary storage image swizzles used by the emulated game yet, but we have a simple path for emulating RGBA -> BGRA storage image swizzles that changes out the Vulkan format. Adding these formats helps us with that.

Copy link
Collaborator

@cdavis5e cdavis5e left a comment

Choose a reason for hiding this comment

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

I had to make sure you got the swizzle right. They can be quite tricky at times, but in this case, this should be pretty straightforward.

@cdavis5e cdavis5e merged commit 546fb10 into KhronosGroup:main Dec 8, 2024
5 of 6 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