Allow building without downloading libktx

This commit is contained in:
Guillaume Meunier
2025-01-15 21:25:35 +01:00
parent 88e7eb3c73
commit 4c0c47f807
6 changed files with 42 additions and 3 deletions
+5
View File
@@ -21,6 +21,7 @@
#include "vk/allocation.h"
#include "vk/fwd.h"
#include "wivrn_config.h"
#include <cstddef>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
@@ -29,7 +30,9 @@
#include <span>
#include <vulkan/vulkan.hpp>
#if WIVRN_USE_LIBKTX
struct ktxVulkanDeviceInfo;
#endif
struct image_loader
{
@@ -71,7 +74,9 @@ struct image_loader
~image_loader();
private:
#if WIVRN_USE_LIBKTX
ktxVulkanDeviceInfo * vdi = nullptr;
#endif
vk::raii::Device & device;
vk::raii::Queue & queue;