diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2025-01-26 22:14:47 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2025-01-26 22:14:47 +0100 |
| commit | 2b2d374eb642edf345f93fa559e8cd7d76a0c9d1 (patch) | |
| tree | fbc1440dc1514a55d14f72a773b0ea962eb93dd0 /include/gltf.hpp | |
| parent | f63be3ecc79499a9a362ce38d0f3be44033c37fc (diff) | |
Fix mesh loading for new API
Diffstat (limited to 'include/gltf.hpp')
| -rw-r--r-- | include/gltf.hpp | 5 |
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;
};
|
