| 2047 | void CommandBuffer::Reset(VkCommandBufferResetFlags flags) { ASSERT_EQ(VK_SUCCESS, vk::ResetCommandBuffer(handle(), flags)); } |
| 2048 | |
| 2049 | VkCommandBufferAllocateInfo CommandBuffer::CreateInfo(VkCommandPool const& pool) { |
| 2050 | VkCommandBufferAllocateInfo info = vku::InitStructHelper(); |
| 2051 | info.commandPool = pool; |
| 2052 | info.commandBufferCount = 1; |
| 2053 | return info; |
| 2054 | } |
| 2055 | |
| 2056 | void CommandBuffer::BeginRenderPass(const VkRenderPassBeginInfo& info, VkSubpassContents contents) { |
| 2057 | vk::CmdBeginRenderPass(handle(), &info, contents); |