aboutsummaryrefslogtreecommitdiffstats
path: root/include/material.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/material.hpp')
-rw-r--r--include/material.hpp9
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;
};