KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.23k stars 634 forks source link

How do I add android VulKan to my project #1077

Closed mpatalberta closed 3 months ago

mpatalberta commented 3 months ago

I can compile and the VulKan on my android unit. How do I add the vulKan to a seperate to android application. (where is the sdk for android. Thanks Pat

SaschaWillems commented 3 months ago

Can you elaborate? What exactly do you want to do? Create your own Vulkan application with Android support?

mpatalberta commented 3 months ago

I have the supplied example working on my android device. How do I add VulKan to an already existing android project?

SaschaWillems commented 3 months ago

And what information do you actually need. The samples already contain everything that you need for adding Vulkan to any Android application. Just look at the code, search for the android defines and copy that code to your own application.

In general Vulkan is a first-class api on Android and there is nothing special required to use it there. If in doubt, google has very good documentation on that: https://developer.android.com/ndk/guides/graphics/getting-started

Note that this issue tracker is meant for actual issues with our samples and not for asking general Vulkan realted questions. Those are better suited for the various Vulkan communities (see https://vulkan.org/learn)