You can sign up to get a daily email of our articles, see the Mailing List page!
Support me on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! We will also never show adverts to anyone who supports GamingOnLinux! Alternatively, you can support me on Paypal.

SDL 2.0.6 released, introduces Vulkan support

Posted by , / 5112 views

The cross-platform development library has seen the release of its latest version. Quite a few exciting changes this time around, including support for Vulkan and more types of gamepads.

SDL [Official Site] is something that has been used in quite a diverse array of projects and plenty of game ports that have made their way to Linux have taken advantage of it. The latest release has its fair share of general improvements but most noticeable is the implementation of Vulkan support. This hopefully will make it easier for developers to take advantage of the Vulkan API and help it gain more traction.

Besides that, support for more gamepads has been added, including the Nintendo Switch Pro controller. There are also new functions available that help to retrieve information about gamepads and joysticks as needed. It’s been my experience that titles using SDL have worked well with just about every gamepad I’ve thrown at them, so it’s nice to see their support roster continually expanding.

You can see the full details of the release here.

22 Likes, Who?
etonbears 23 September 2017 at 10:39 pm UTC
SDL is a great basis for starting cross-platform code. It's very helpful for SDL to provide access to an initialised Vulkan drawing context, mainly because you can also use SDL input, event and device handling which is a good multi-platform abstraction. The threading and utility APIs are good too.

But SDL doesn't really help learn Vulkan ( or any other graphics API ), since it has drawing abstractions only for limited 2D and sprite animation. The complex 3D and compute operations generally used in simulations and games still need to be learned for each graphics API you want to support. In other words, you need to provide your own abstraction over all the graphics APIs you want to support, but you don't need to be bothered about which OS platform you are running on.


Last edited by etonbears at 23 September 2017 at 10:40 pm UTC
charliebrownau 24 September 2017 at 1:59 pm UTC
Does anyone actually have good info to explain how to make shaders for Vulkan

Does anyone have some good info to support vulkan in UE4 and Unity ?

It seems all info for this is bloody rare as unicorns to actually do some real world implementation
knro 24 September 2017 at 6:17 pm UTC
Is SDL2 used for commercial games or what? I found the Wikipedia link but the list is limited. Game engines like Unity, Unreal, Crytek uses it or who?
mirv 24 September 2017 at 6:34 pm UTC
View PC info
  • Supporter
charliebrownauDoes anyone actually have good info to explain how to make shaders for Vulkan

Does anyone have some good info to support vulkan in UE4 and Unity ?

It seems all info for this is bloody rare as unicorns to actually do some real world implementation

Try searching on shaders using GLSL. Vulkan doesn't support anything other than SPIR-V format for shaders, which is an intermediate binary representation. There are tutorials in loading shaders into Vulkan, but making them in the first place is no different from OpenGL (or others, it's just that using GLSL is probably the best supported by the offline compilers for now).

With regards to Vulkan support in UE4 and Unity, your best bet are the developers of those engines: email, forums, irc. There's also documentation for each, though normally that kind of thing is "hidden" away from non-engine developers.

If you're really interested in using Vulkan, as opposed to Vulkan with your game engine of choice, there is _plenty_ of information out there. You just need to start from small tutorials, not entire game engines.
mirv 24 September 2017 at 7:02 pm UTC
View PC info
  • Supporter
knroIs SDL2 used for commercial games or what? I found the Wikipedia link but the list is limited. Game engines like Unity, Unreal, Crytek uses it or who?

UE4 uses it, Unity3D I'm not sure about (didn't used to, but that might have changed by now). Don't know about Cryengine, but I suspect a google search will answer that. So yes, some commercial games use it. So do open source games, and non-games.
tuubi 24 September 2017 at 7:22 pm UTC
View PC info
  • Supporter
mirv
knroIs SDL2 used for commercial games or what? I found the Wikipedia link but the list is limited. Game engines like Unity, Unreal, Crytek uses it or who?

UE4 uses it, Unity3D I'm not sure about (didn't used to, but that might have changed by now). Don't know about Cryengine, but I suspect a google search will answer that. So yes, some commercial games use it. So do open source games, and non-games.
Yes they do. Unreal, Cryengine and since version 5.6 also Unity all depend on SDL2. All of Aspyr's and Feral's Linux ports as well. Not to mention Steam and open source engines like ioquake3.

It's pretty damn hard to find a good reason not to use SDL2 if you're a cross-platform game developer.
mirv 24 September 2017 at 7:35 pm UTC
View PC info
  • Supporter
tuubi
mirv
knroIs SDL2 used for commercial games or what? I found the Wikipedia link but the list is limited. Game engines like Unity, Unreal, Crytek uses it or who?

UE4 uses it, Unity3D I'm not sure about (didn't used to, but that might have changed by now). Don't know about Cryengine, but I suspect a google search will answer that. So yes, some commercial games use it. So do open source games, and non-games.
Yes they do. Unreal, Cryengine and since version 5.6 also Unity all depend on SDL2. All of Aspyr's and Feral's Linux ports as well. Not to mention Steam and open source engines like ioquake3.

It's pretty damn hard to find a good reason not to use SDL2 if you're a cross-platform game developer.

Well, if not SDL, then at least a cross-platform library to handle windowing and basic input.
While you're here, please consider supporting GamingOnLinux on Patreon. We have no adverts, no paywalls, no timed exclusive articles. Just good, fresh content. Without your continued support, we simply could not continue!

We also accept Paypal donations! If you already are, thank you!

Due to spam you need to Register and Login to comment.


Or login with...

Livestreams & Videos
Official Livestreams
  • Rust... What have we started.
  • Date:
Community Livestreams
  • hatniX plays: Bear With Me
  • Date:
See more!
Popular this week
View by Category
Contact
Latest Forum Posts
Facebook