Is it possible to do offscreen rendering without Surface in Vulkan?

此生再无相见时 提交于 2019-12-06 03:05:45

问题


Similar to surfaceless context in OpenGL can we do it in Vulkan.


回答1:


Sure it's even designed to do so from the start.

Instead of getting your images from a swapchain, create them and allocate and bind memory for it yourself.

Getting the result back will then require a copy into a host-visible readback buffer after the render.



来源:https://stackoverflow.com/questions/38885309/is-it-possible-to-do-offscreen-rendering-without-surface-in-vulkan

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!