Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vulkan - draw texture directly without vertices and shaders

Is it possible to draw texture (if it is with correct width, height and pixel format) directly to frame buffer without using vertices and shaders in Vulkan?

like image 511
zedrian Avatar asked Aug 12 '16 08:08

zedrian


1 Answers

You can do a vkCmdCopyImage to copy from your vkImage to a swapchain's vkImage provided the vkSurface supports being a TRANSFER_DST as by the supportedUsageFlags field from the result of vkGetPhysicalDeviceSurfaceCapabilitiesKHR.

Otherwise you need to do a fullscreen render and grab the color data from the input image as a sampled texture or input attachment.

like image 180
ratchet freak Avatar answered Sep 22 '22 23:09

ratchet freak