aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan_utils.hpp')
-rw-r--r--src/vulkan_utils.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan_utils.hpp b/src/vulkan_utils.hpp
index dd57afc..1efc73e 100644
--- a/src/vulkan_utils.hpp
+++ b/src/vulkan_utils.hpp
@@ -9,6 +9,7 @@
#include <GLFW/glfw3.h>
#include "math/vector.hpp"
+#include "math/mat4.hpp"
#include "o3d/vertex.hpp"
namespace engine::vk {
@@ -59,6 +60,11 @@ struct Vertex {
engine::math::Vector3 col;
};
+// TODO: move to a better place. Also, see TODOs for struct Vertex
+struct UniformBufferObject {
+ alignas(16) engine::math::Matrix4 model, view, proj;
+};
+
}
#endif // VULKAN_UTILS_HPP