Vulkan - draw a texture directly without vertices and shaders

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

+4
source share
1 answer

You can do vkCmdCopyImageto copy from vkImageto swapchain vkImage, if vkSurfacesupported TRANSFER_DST, and the supportedUsageFlagsresult in the field vkGetPhysicalDeviceSurfaceCapabilitiesKHR.

Otherwise, you need to do full-screen rendering and capture color data from the input image as a selective texture or input.

+6

Source: https://habr.com/ru/post/1651032/


All Articles