]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/batch_backend.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / batch_backend.h
1 #ifndef MSP_GL_BATCH_BACKEND_H_
2 #define MSP_GL_BATCH_BACKEND_H_
3
4 #include "datatype.h"
5 #include "primitivetype.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class VulkanBatch
11 {
12         friend class VulkanCommands;
13
14 protected:
15         VulkanBatch(PrimitiveType) { }
16
17         static bool check_restart(bool) { return true; }
18
19         void set_index_type(DataType) { }
20 };
21
22 using BatchBackend = VulkanBatch;
23
24 unsigned get_vulkan_index_type(DataType);
25
26 } // namespace GL
27 } // namespace Msp
28
29 #endif