0

I am trying to convert vk_raytrace to headless so that I can run it via commandline and dump rendered image. I am new to vulkan and saw that vulkan supports headless surface. My first approach was to replace the surface created using glfw window to a headless surface. However, I get VK_ERROR_EXTENSION_NOT_PRESENT for VK_EXT_headless_surface. Next I tried removing surface and swapchain related logic and create frame buffers with image view as attachment. Haven't had any luck with that either.

Any pointers on this would be very helpful.

midi
  • 460
  • 3
  • 17
  • "*Haven't had any luck with that either.*" Well... did you do it correctly? Being "headless" is the *default* state of Vulkan; you have to expend effort to display stuff. Why are you using GLFW if you don't want a window? – Nicol Bolas Sep 16 '22 at 20:23
  • No, I've removed glfw. – midi Sep 16 '22 at 20:26
  • "It does not work" is not sufficient debugging information. – krOoze Sep 20 '22 at 18:37

0 Answers0