Merge pull request 'KTX and DDS image file loaders' (#169) from ktx_dds into master

Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/169
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
This commit is contained in:
Vladyslav_Baranovskyi_EXT
2024-12-09 17:48:31 +01:00
9 changed files with 390 additions and 2 deletions

View File

@@ -41,4 +41,6 @@ if(ENABLE_TEST)
add_subdirectory(catch2)
endif()
add_subdirectory(tinyusdz)
add_subdirectory(tinyusdz)
add_subdirectory(ktx-software)
add_subdirectory(dds_image)

15
3rdParty/dds_image/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,15 @@
include(FetchContent)
if(NOT DEFINED DDS_IMAGE_REPO)
set(DDS_IMAGE_REPO https://github.com/spnda/dds_image.git)
endif ()
FetchContent_Declare(
dds_image
EXCLUDE_FROM_ALL
GIT_REPOSITORY ${DDS_IMAGE_REPO}
GIT_TAG main
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(dds_image)

20
3rdParty/ktx-software/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,20 @@
include(FetchContent)
if(NOT DEFINED KTX_REPO)
set(KTX_REPO https://github.com/KhronosGroup/KTX-Software.git)
endif ()
FetchContent_Declare(
ktx
EXCLUDE_FROM_ALL
GIT_REPOSITORY ${KTX_REPO}
GIT_TAG v4.3.2
GIT_SHALLOW TRUE
)
set(LIB_TYPE_DEFAULT OFF CACHE BOOL "" FORCE)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
set(BASISU_SUPPORT_SSE OFF CACHE BOOL "" FORCE)
set(KTX_FEATURE_STATIC_LIBRARY ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(ktx)