Working fastgltf build, but had to manually include the headers.
This commit is contained in:
parent
6d29fb718b
commit
0e6d452580
8 changed files with 63 additions and 3 deletions
22
vk_loader.h
Normal file
22
vk_loader.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <vk_types.h>
|
||||
#include <unordered_map>
|
||||
#include <filesystem>
|
||||
|
||||
struct GeoSurface {
|
||||
uint32_t startIndex;
|
||||
uint32_t count;
|
||||
};
|
||||
|
||||
struct MeshAsset {
|
||||
std::string name;
|
||||
|
||||
std::vector<GeoSurface> surfaces;
|
||||
GPUMeshBuffers meshBuffers;
|
||||
};
|
||||
|
||||
class VulkanEngine;
|
||||
|
||||
std::optional<std::vector<std::shared_ptr<MeshAsset>>> loadGltfMeshes(VulkanEngine* engine, std::filesystem::path filePath);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue