thatcosmonaut / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
1 stars 1 forks source link

Texture Format Swizzling #56

Open TheSpydog opened 6 days ago

TheSpydog commented 6 days ago

Some of the texture formats we expose are only natively supported by Vulkan, but they have swizzled variants that are supported by all the other APIs. I think we should expose the most common formats and have fallback swizzling as needed for the backends that lack native support.

flibitijibibo commented 6 days ago

Out of all the APIs Vulkan has the best support for built-in swizzling, we should use the formats that other APIs natively support and swizzle as needed for Vulkan (or use a native format if an extension like EXT_4444_formats is available). FNA has been able to handle this, so we can take notes from our own Vulkan renderer if needed.