add transfer to draw image function
This commit is contained in:
parent
7c01b68d36
commit
c9aca769b2
@ -868,6 +868,18 @@ PrepComputeDrawImage()
|
||||
Transition(g_vk.cmd, &g_vk.draw_image, IL.General);
|
||||
}
|
||||
|
||||
void
|
||||
CopyToPresentImage(Descriptor* descriptor, UVec2 extent)
|
||||
{
|
||||
Transition(g_vk.cmd, descriptor, IL.TransferSrc);
|
||||
Transition(g_vk.cmd, g_vk.present_image_ptr, IL.TransferDst);
|
||||
|
||||
VkExtent2D src_extent = { width: extent.x, height: extent.y };
|
||||
VkExtent2D dst_extent = { width: g_vk.swapchain_extent.width, height: g_vk.swapchain_extent.height };
|
||||
|
||||
Copy(g_vk.cmd, descriptor, g_vk.present_image_ptr, src_extent, dst_extent);
|
||||
}
|
||||
|
||||
void
|
||||
FinishRendering()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user