1 #ifndef MSP_GL_VULKAN_SYNCHRONIZER_H_
2 #define MSP_GL_VULKAN_SYNCHRONIZER_H_
19 unsigned current_layout;
20 unsigned pending_layout;
26 std::size_t offset = 0;
28 bool was_written = false;
29 bool pending_write = false;
33 std::vector<BufferAccess> buffer_accesses;
34 std::vector<ImageAccess> image_accesses;
37 Synchronizer(Device &);
39 void access(VkBuffer, std::size_t, std::size_t);
40 void access(VkImage, unsigned, int, unsigned, bool);
42 void barrier(VkCommandBuffer);
45 bool is_write_layout(unsigned);