Lines Matching refs:cmd_buf
547 void VkImageObj::ImageMemoryBarrier(VkCommandBufferObj *cmd_buf, in ImageMemoryBarrier() argument
578 vkCmdPipelineBarrier(cmd_buf->handle(), src_stages, dest_stages, 0, 0, NULL, in ImageMemoryBarrier()
582 void VkImageObj::SetLayout(VkCommandBufferObj *cmd_buf, in SetLayout() argument
648 ImageMemoryBarrier(cmd_buf, aspect, src_mask, dst_mask, image_layout); in SetLayout()
666 VkCommandBufferObj cmd_buf(m_device, pool.handle()); in SetLayout() local
669 err = cmd_buf.BeginCommandBuffer(); in SetLayout()
672 SetLayout(&cmd_buf, aspect, image_layout); in SetLayout()
674 err = cmd_buf.EndCommandBuffer(); in SetLayout()
677 cmd_buf.QueueCommandBuffer(); in SetLayout()
750 VkCommandBufferObj cmd_buf(m_device, pool.handle()); in CopyImage() local
753 err = cmd_buf.BeginCommandBuffer(); in CopyImage()
758 src_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, in CopyImage()
762 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, in CopyImage()
782 vkCmdCopyImage(cmd_buf.handle(), src_image.handle(), src_image.layout(), in CopyImage()
785 src_image.SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, src_image_layout); in CopyImage()
787 this->SetLayout(&cmd_buf, VK_IMAGE_ASPECT_COLOR_BIT, dest_image_layout); in CopyImage()
789 err = cmd_buf.EndCommandBuffer(); in CopyImage()
792 cmd_buf.QueueCommandBuffer(); in CopyImage()