/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright: * 2016-2017, Danny Robson */ #ifndef CRUFT_VK_COMMAND_BUFFER_HPP #define CRUFT_VK_COMMAND_BUFFER_HPP #include "./object.hpp" #include namespace cruft::vk { struct command_buffer : public owned { void reset (VkCommandBufferResetFlags); void begin (const VkCommandBufferBeginInfo&); void begin (const VkRenderPassBeginInfo&, VkSubpassContents); void end (void); void end_pass (void); template void execute (const command_buffer (&buffers)[N]); void next_subpass (VkSubpassContents); template void bind (const pipeline&); void set (const event&, VkPipelineStageFlags); void reset (const event&, VkPipelineStageFlags); void wait (cruft::view, VkPipelineStageFlags src_mask, VkPipelineStageFlags dst_mask, cruft::view, cruft::view, cruft::view); void pipeline_barrier ( VkPipelineStageFlags src_mask, VkPipelineStageFlags dst_mask, VkDependencyFlags, cruft::view, cruft::view, cruft::view); }; } #endif