在 Vulkan 中是否可以在没有 Surface 的情况下进行离屏渲染? [英] Is it possible to do offscreen rendering without Surface in Vulkan?

查看:30
本文介绍了在 Vulkan 中是否可以在没有 Surface 的情况下进行离屏渲染?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于 OpenGL 中的无表面上下文,我们可以在 Vulkan 中实现.

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

推荐答案

当然,它甚至从一开始就是这样设计的.

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.

这篇关于在 Vulkan 中是否可以在没有 Surface 的情况下进行离屏渲染?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆