aboutsummaryrefslogtreecommitdiffstats
path: root/include/gltf.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2025-01-26 22:14:47 +0100
committerladevieq <ladevie.quentin@gmail.com>2025-01-26 22:14:47 +0100
commit2b2d374eb642edf345f93fa559e8cd7d76a0c9d1 (patch)
treefbc1440dc1514a55d14f72a773b0ea962eb93dd0 /include/gltf.hpp
parentf63be3ecc79499a9a362ce38d0f3be44033c37fc (diff)
Fix mesh loading for new API
Diffstat (limited to 'include/gltf.hpp')
-rw-r--r--include/gltf.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gltf.hpp b/include/gltf.hpp
index 6e89509..1ccaf56 100644
--- a/include/gltf.hpp
+++ b/include/gltf.hpp
@@ -49,7 +49,12 @@ private:
json gltf_json;
std::vector<Mesh> meshes;
std::vector<material> materials;
+#ifdef API_TEST
+ std::vector<handle<device_texture>> textures;
+ // handle<device_sampler> samplers;
+#else
std::vector<Texture*> textures;
+#endif // API_TEST
std::vector<std::vector<uint8_t>> buffers;
};