How to know the final vkFormat without transcoding #1032
-
|
The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Do you need to know in advance programmatically? If so, why? The format comes directly from the
Similarly |
Beta Was this translation helpful? Give feedback.
Do you need to know in advance programmatically? If so, why?
The format comes directly from the
ktx_transcode_fmt_eyou specify. For exampleKTX_TTF_BC3_RGBAis equivalent toVK_FORMAT_BC3_{UNORM,SRGB}_BLOCK. Whether it isUNORMorSRGBis decided by the image data as indicated by the return value ofktxTexture2_GetTransferFunction_e. If it isKHR_DF_TRANSFER_SRGBthe result will beSRGBotherwise it will beUNORM.Similarly
KTX_TTF_ASTC_4x4_RGBAmeans transcode toVK_FORMAT_ASTC_4x4_{UNORM,SRGB}_BLOCK.