1 #ifndef MSP_GL_VULKAN_STRUCTUREBUILDER_H_
2 #define MSP_GL_VULKAN_STRUCTUREBUILDER_H_
10 class StructureBuilder
15 std::size_t offset = 0;
19 std::vector<char> &storage;
20 std::vector<Part> parts;
23 StructureBuilder(std::vector<char> &, unsigned);
26 T *const &add(std::size_t count = 1)
27 { return reinterpret_cast<T *const &>(add(sizeof(T)*count, alignof(T))); }
30 void *const &add(std::size_t, std::size_t);