How to render to OpenGL from Vulkan?

后端 未结 3 1449
既然无缘
既然无缘 2021-01-02 08:04

Is it possible to render to OpenGL from Vulkan?

It seems nVidia has something: https://lunarg.com/faqs/mix-opengl-vulkan-rendering/

Can it be done for other

3条回答
  •  佛祖请我去吃肉
    2021-01-02 08:45

    NVIDIA has created an OpenGL extension, NV_draw_vulkan_image, which can render a VkImage in OpenGL. It even has some mechanisms for interacting with Vulkan semaphores and the like.

    However, according to the documentation, you must bypass all Vulkan layers, since layers can modify non-dispatchable handles and the OpenGL extension doesn't know about said modifications. And their recommended means of doing so is to use the glGetVkProcAddrNV for all of your Vulkan functions.

    Which also means that you can't get access to any debugging that relies on Vulkan layers.

提交回复
热议问题