]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/batch_backend.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / batch_backend.h
diff --git a/source/backends/vulkan/batch_backend.h b/source/backends/vulkan/batch_backend.h
new file mode 100644 (file)
index 0000000..78fdd9d
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef MSP_GL_BATCH_BACKEND_H_
+#define MSP_GL_BATCH_BACKEND_H_
+
+#include "datatype.h"
+#include "primitivetype.h"
+
+namespace Msp {
+namespace GL {
+
+class VulkanBatch
+{
+       friend class VulkanCommands;
+
+protected:
+       VulkanBatch(PrimitiveType) { }
+
+       static bool check_restart(bool) { return true; }
+
+       void set_index_type(DataType) { }
+};
+
+using BatchBackend = VulkanBatch;
+
+unsigned get_vulkan_index_type(DataType);
+
+} // namespace GL
+} // namespace Msp
+
+#endif