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/material.hpp | |
| parent | f63be3ecc79499a9a362ce38d0f3be44033c37fc (diff) | |
Fix mesh loading for new API
Diffstat (limited to 'include/material.hpp')
| -rw-r--r-- | include/material.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/material.hpp b/include/material.hpp index 71dd4ca..35710d2 100644 --- a/include/material.hpp +++ b/include/material.hpp @@ -4,12 +4,21 @@ #include "vec3.hpp" +#ifdef API_TEST +#include "vk-device-types.hpp" +#else class Texture; +#endif struct material { color base_color; +#ifdef API_TEST + handle<device_texture> base_color_texture; + handle<device_texture> metallic_roughness_texture; +#else Texture* base_color_texture; Texture* metallic_roughness_texture; +#endif // API_TEST float metalness = 1.f; float roughness = 1.f; }; |
