Replace tinygltf with fastgltf
This commit is contained in:
+1
-1
@@ -118,10 +118,10 @@ endif()
|
|||||||
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
|
FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz)
|
||||||
|
|
||||||
# Client dependencies
|
# 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(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(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(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
|
# Server dependencies
|
||||||
FetchContent_Declare(monado
|
FetchContent_Declare(monado
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
set(TINYGLTF_BUILD_LOADER_EXAMPLE OFF)
|
FetchContent_MakeAvailable(spdlog glm fastgltf imgui)
|
||||||
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)
|
|
||||||
|
|
||||||
include(FreetypeHarfbuzz)
|
include(FreetypeHarfbuzz)
|
||||||
include(CompileGLSL)
|
include(CompileGLSL)
|
||||||
@@ -117,7 +110,7 @@ file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl")
|
|||||||
target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS})
|
target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS})
|
||||||
wivrn_compile_glsl(wivrn ${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 -DXR_USE_GRAPHICS_API_VULKAN)
|
||||||
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
|
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
|
||||||
target_compile_options(wivrn PRIVATE -fdiagnostics-color -Wall -Wextra -pedantic) # -Werror
|
target_compile_options(wivrn PRIVATE -fdiagnostics-color -Wall -Wextra -pedantic) # -Werror
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <glm/gtc/quaternion.hpp>
|
#include <glm/gtc/quaternion.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <tiny_gltf.h>
|
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
#include <vulkan/vulkan_enums.hpp>
|
#include <vulkan/vulkan_enums.hpp>
|
||||||
#include <vulkan/vulkan_raii.hpp>
|
#include <vulkan/vulkan_raii.hpp>
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
#include "scene.h"
|
#include "scene.h"
|
||||||
#include <vulkan/vulkan_raii.hpp>
|
#include <vulkan/vulkan_raii.hpp>
|
||||||
#include "wivrn_discover.h"
|
#include "wivrn_discover.h"
|
||||||
#include <tiny_gltf.h>
|
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
@@ -62,7 +61,6 @@ class lobby : public scene
|
|||||||
|
|
||||||
std::optional<wivrn_discover> discover;
|
std::optional<wivrn_discover> discover;
|
||||||
|
|
||||||
tinygltf::Model model;
|
|
||||||
std::vector<vk::DeviceMemory> model_memory;
|
std::vector<vk::DeviceMemory> model_memory;
|
||||||
std::vector<vk::Buffer> model_buffers;
|
std::vector<vk::Buffer> model_buffers;
|
||||||
std::vector<vk::Image> model_images;
|
std::vector<vk::Image> model_images;
|
||||||
|
|||||||
Reference in New Issue
Block a user