Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Does SFML support the Vulkan API on Android?  (Read 2998 times)

0 Members and 1 Guest are viewing this topic.

Eugene

  • Newbie
  • *
  • Posts: 2
    • View Profile
Does SFML support the Vulkan API on Android?
« on: January 26, 2024, 08:06:08 am »
Good afternoon  :). My question is voiced in the title. I built a test example with Vulkan on Windows, everything is clear there and does not cause any questions. But how are things with support in Android? I have not found any information about it in free search and on the forum. I apologize if I searched badly and this topic is duplicated, in which case please kick me in the right direction :)
« Last Edit: January 26, 2024, 08:09:51 am by Eugene »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Does SFML support the Vulkan API on Android?
« Reply #1 on: January 26, 2024, 08:12:41 am »
The SFML graphics module currently uses OpenGL, respectively OpenGL ES on mobile, for all the graphics.

As on the desktop, you should be able to create a sf::WindowBase that doesn't give you an OpenGL context and call createVulkanSurface to create a Vulkan surface.
Beyond that, you're on your own to implement everything else Vulkan.
Feel free to check out the Vulkan example in the repository: https://github.com/SFML/SFML/tree/master/examples/vulkan
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Eugene

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Does SFML support the Vulkan API on Android?
« Reply #2 on: January 26, 2024, 08:26:30 am »
That was my mistake though, it means I was trying to use sf::RenderWindow, and I should use sf::WindowBase (my first attempt to render a triangle using Vulkan in Android Studio with SFML). Well, got it, thanks a lot for the prompt reply! :)
« Last Edit: January 26, 2024, 02:34:32 pm by Eugene »