-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixing color order for RGB10A2 on vulkan. #3403
base: master
Are you sure you want to change the base?
Conversation
OK, now this change seems to make both work. |
@bwrsandman Sorry for the ping but I saw you've touched this format/swizzle code before. You mind taking a look? |
I can have a look over the weekend. |
Thanks! To reproduce the bug change this line bgfx/examples/38-bloom/bloom.cpp Line 398 in b927871
to use RGB10A2 instead and the colors will change like above (flipping R and B) |
That's wrong diagnosis... Lines 5078 to 5083 in b927871
|
I'm not saying there's something wrong with createFrameBuffer. I just mean currently the colors are flipped when using a frame buffer with that format and not when using a texture. |
Not sure why this was flipped but this fixes RGB10A2 frame buffer colors on vulkan.