Replace tinygltf with fastgltf

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:31 +01:00
parent d5e1165ff4
commit 90be180d9f
4 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -118,10 +118,10 @@ endif()
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
# Client dependencies
FetchContent_Declare(fastgltf URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.6.0.tar.gz)
FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz)
FetchContent_Declare(openxr_loader URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.0.32.tar.gz)
FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz)
FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs/tags/v2.6.3.tar.gz)
# Server dependencies
FetchContent_Declare(monado
+2 -9
View File
@@ -1,11 +1,4 @@
set(TINYGLTF_BUILD_LOADER_EXAMPLE OFF)
set(TINYGLTF_BUILD_GL_EXAMPLES OFF)
set(TINYGLTF_BUILD_VALIDATOR_EXAMPLE OFF)
set(TINYGLTF_BUILD_BUILDER_EXAMPLE OFF)
set(TINYGLTF_HEADER_ONLY OFF)
set(TINYGLTF_INSTALL OFF)
FetchContent_MakeAvailable(spdlog glm tinygltf imgui)
FetchContent_MakeAvailable(spdlog glm fastgltf imgui)
include(FreetypeHarfbuzz)
include(CompileGLSL)
@@ -117,7 +110,7 @@ file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl")
target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS})
wivrn_compile_glsl(wivrn ${VULKAN_SHADERS})
target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm tinygltf FreetypeHarfbuzz imgui)
target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm fastgltf FreetypeHarfbuzz imgui)
target_compile_definitions(wivrn PRIVATE -DXR_USE_GRAPHICS_API_VULKAN)
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
target_compile_options(wivrn PRIVATE -fdiagnostics-color -Wall -Wextra -pedantic) # -Werror
-1
View File
@@ -30,7 +30,6 @@
#include <cstdint>
#include <glm/gtc/quaternion.hpp>
#include <string>
#include <tiny_gltf.h>
#include <spdlog/spdlog.h>
#include <vulkan/vulkan_enums.hpp>
#include <vulkan/vulkan_raii.hpp>
-2
View File
@@ -22,7 +22,6 @@
#include "scene.h"
#include <vulkan/vulkan_raii.hpp>
#include "wivrn_discover.h"
#include <tiny_gltf.h>
#include <optional>
@@ -62,7 +61,6 @@ class lobby : public scene
std::optional<wivrn_discover> discover;
tinygltf::Model model;
std::vector<vk::DeviceMemory> model_memory;
std::vector<vk::Buffer> model_buffers;
std::vector<vk::Image> model_images;