Hello! We’re starting to adapt the NVTT exporter with its support for KTX2 output. So far, it has been phenomenal! It seems like the best tool for what we’ve needed in our game asset pipeline.
I see that the tool supports BGR8, BGRA8, and RGBA16F outputs and confirmed that they export correctly in KTX2. However, our asset pipeline and runtime expect RGBA8 inputs for most color images. I couldn’t find RGBA8 in the list of export formats in the NVTT Exporter CLI or GUI.
Are RGB8 and RGBA8 supported already? If not, I’d like to request support for those formats.
Additionally, is there an option to specify the image color space, like sRGB gamma encoded (VK_FORMAT_R8G8B8A8_SRGB
) vs linear (VK_FORMAT_R8G8B8A8_UNORM
)? KTX2 supports both of these formats and the distinction is important for our content pipeline. The BGRA format description in the UI says that it’s sRGB and I can confirm that it exports as VK_FORMAT_B8G8R8_SRGB
.
Even when passing --to-normal-ts
, which should yield linear color output, the output format is still VK_FORMAT_B8G8R8_SRGB
.
The Khronos Texture Tools like toktx have an --assign_oetf
flag that can be given srgb
or linear
. It works very well in our pipeline!
Thank you!