backup
[demo] / src / vulkan / mesh-vk.cc
index 89594f2..2f0c5fb 100644 (file)
@@ -1,3 +1,4 @@
+#include <vulkan/vulkan.h>
 #include "mesh-vk.h"
 
 MeshVK::MeshVK() {}
@@ -29,6 +30,13 @@ MeshVK::~MeshVK()
 
 void MeshVK::update_vertex_data()
 {
+       if(vertices.empty()) {
+               printf("empty vertices!\n");
+               return;
+       }
+
+//     if(num_vertices != vertices.size()) {
+//     }
 }
 
 void MeshVK::draw() const
@@ -37,4 +45,4 @@ void MeshVK::draw() const
 
 void MeshVK::draw_normals(float scale) const
 {
-}
\ No newline at end of file
+}