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 BGRX8 format support #40

Open
null77 opened this issue Nov 10, 2023 · 1 comment
Open

Add BGRX8 format support #40

null77 opened this issue Nov 10, 2023 · 1 comment

Comments

@null77
Copy link

null77 commented Nov 10, 2023

This format is useful for interop between NVRHI and some other APIs (in my case SDL). It would be useful to avoid custom code to translate pixel formats or having to "fake" the format via BGRA8.

BGRX8 is supported in Vulkan and D3D (DXGI), and doesn't exist in Metal. It seems straight-forward to add to D3D and Vulkan, using the existing format tables, and in Metal NVRHI can return no support via the mechanism to indicate there's no support for a particular format (Device::queryFormatSupport).

Would this be an acceptable new feature? If so I'm happy to put together a PR.

@null77
Copy link
Author

null77 commented Nov 10, 2023

My bad, looks like the format doesn't exist in Vulkan. Probably isn't worth supporting it directly, but I'll leave it open in case it's something worth doing.

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

No branches or pull requests

1 participant