Replace toktx binary with ktx

This commit is contained in:
Patrick Nicolas
2026-06-19 10:55:01 +02:00
parent 39ba5041e2
commit 8fe89569ab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ endif()
if (WIVRN_BUILD_CLIENT)
find_program(RSVG_CONVERT rsvg-convert REQUIRED)
find_program(TOKTX toktx REQUIRED)
find_program(KTX ktx REQUIRED)
if (WIVRN_COMPRESS_GLB)
find_program(GLTF_TRANSFORM gltf-transform REQUIRED)
+1 -1
View File
@@ -17,7 +17,7 @@ function(wivrn_generate_ktx)
file(MAKE_DIRECTORY ${DEST_DIR})
add_custom_command(OUTPUT ${arg_DESTINATION}
COMMAND ${TOKTX} --encode uastc --uastc_quality 4 --genmipmap --zcmp 20 ${arg_DESTINATION} ${arg_SOURCE}
COMMAND ${KTX} create --encode uastc --uastc-quality 4 --generate-mipmap --zstd 20 --format R8G8B8A8_SRGB ${arg_SOURCE} ${arg_DESTINATION}
DEPENDS ${arg_SOURCE})
if (DEFINED arg_TARGET)