[BROKEN] This compiles if we use fastgltf 0.9.0, but it says Error::UnsupportedVersion for the file. Earlier versions can't compile because either simdjson has code errors, or the .a/.so is missing important functions.

This commit is contained in:
Zed A. Shaw 2025-12-20 00:36:55 -05:00
parent 85d792e257
commit dbda70e3a0
7 changed files with 185 additions and 7 deletions

View file

@ -6,6 +6,7 @@
#include <vk_types.h>
#include <vk_descriptors.h>
#include "vk_gui.h"
#include "vk_loader.h"
struct Transaction {
VkCommandBuffer cmd;
@ -100,6 +101,7 @@ public:
VkPipeline _meshPipeline;
GPUMeshBuffers rectangle;
std::vector<std::shared_ptr<MeshAsset>> testMeshes;
// ZED's REFACTOR
VkGUI _gui;
@ -123,6 +125,8 @@ public:
Transaction begin_transaction();
void commit_transaction(Transaction& cmd);
GPUMeshBuffers uploadMesh(std::span<uint32_t> indices, std::span<Vertex> vertices);
private:
void init_vulkan();
void init_swapchain();
@ -146,5 +150,4 @@ private:
void draw_background(VkCommandBuffer cmd);
void draw_geometry(VkCommandBuffer cmd);
GPUMeshBuffers uploadMesh(std::span<uint32_t> indices, std::span<Vertex> vertices);
};