Lines Matching refs:cmd_buf
1000 void VkImageObj::ImageMemoryBarrier(VkCommandBufferObj *cmd_buf, VkImageAspectFlags aspect, in ImageMemoryBarrier() argument
1030 …vkCmdPipelineBarrier(cmd_buf->handle(), src_stages, dest_stages, VK_DEPENDENCY_BY_REGION_BIT, 0, N… in ImageMemoryBarrier()
1034 void VkImageObj::SetLayout(VkCommandBufferObj *cmd_buf, VkImageAspectFlags aspect, VkImageLayout im… in SetLayout() argument
1095 ImageMemoryBarrier(cmd_buf, aspect, src_mask, dst_mask, image_layout); in SetLayout()
1105 VkCommandBufferObj cmd_buf(m_device, &pool); in SetLayout() local
1108 cmd_buf.begin(); in SetLayout()
1109 SetLayout(&cmd_buf, aspect, image_layout); in SetLayout()
1110 cmd_buf.end(); in SetLayout()
1112 cmd_buf.QueueCommandBuffer(); in SetLayout()
1285 VkCommandBufferObj cmd_buf(m_device, &pool); in CopyImage() local
1288 cmd_buf.begin(); in CopyImage()
1292 src_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL); in CopyImage()
1295 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL); in CopyImage()
1314 …vkCmdCopyImage(cmd_buf.handle(), src_image.handle(), src_image.Layout(), handle(), Layout(), 1, &c… in CopyImage()
1316 src_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, src_image_layout); in CopyImage()
1318 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, dest_image_layout); in CopyImage()
1320 cmd_buf.end(); in CopyImage()
1322 cmd_buf.QueueCommandBuffer(); in CopyImage()
1332 VkCommandBufferObj cmd_buf(m_device, &pool); in CopyImageOut() local
1334 cmd_buf.begin(); in CopyImageOut()
1337 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL); in CopyImageOut()
1340 dst_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL); in CopyImageOut()
1359 …vkCmdCopyImage(cmd_buf.handle(), handle(), Layout(), dst_image.handle(), dst_image.Layout(), 1, &c… in CopyImageOut()
1361 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, src_image_layout); in CopyImageOut()
1363 dst_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, dest_image_layout); in CopyImageOut()
1365 cmd_buf.end(); in CopyImageOut()
1367 cmd_buf.QueueCommandBuffer(); in CopyImageOut()