{"id":15110378,"url":"https://github.com/android/getting-started-with-vulkan-on-android-codelab","last_synced_at":"2026-03-02T08:34:31.755Z","repository":{"id":232212171,"uuid":"780214295","full_name":"android/getting-started-with-vulkan-on-android-codelab","owner":"android","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-27T06:24:35.000Z","size":4935,"stargazers_count":35,"open_issues_count":2,"forks_count":18,"subscribers_count":4,"default_branch":"codelab/end","last_synced_at":"2025-10-20T01:17:25.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/android.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-01T01:53:16.000Z","updated_at":"2025-10-15T07:56:00.000Z","dependencies_parsed_at":"2025-10-19T19:31:26.750Z","dependency_job_id":null,"html_url":"https://github.com/android/getting-started-with-vulkan-on-android-codelab","commit_stats":null,"previous_names":["android/getting-started-with-vulkan-on-android-codelab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/android/getting-started-with-vulkan-on-android-codelab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fgetting-started-with-vulkan-on-android-codelab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fgetting-started-with-vulkan-on-android-codelab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fgetting-started-with-vulkan-on-android-codelab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fgetting-started-with-vulkan-on-android-codelab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/getting-started-with-vulkan-on-android-codelab/tar.gz/refs/heads/codelab/end","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fgetting-started-with-vulkan-on-android-codelab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T23:44:40.498Z","updated_at":"2026-03-02T08:34:31.730Z","avatar_url":"https://github.com/android.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello VK\n\nHello VK is an Android C++ sample that draws the simple, but traditional Hello\nWorld Triangle.\n\nAside from the base functionality the source code also covers convenient\nfeatures such as:\n\n- Vulkan validation layers. See section below for information on how to enable\n  these\n- Vulkan pre-rotation to enable fast and seamless screen rotation implemented on\n  the application side. You can read more about it here:\n  https://developer.android.com/games/optimize/vulkan-prerotation\n\n## Pre-requisites\n\n- Android Studio 4.2+ with [NDK](https://developer.android.com/ndk/) bundle.\n\n## Getting Started\n\n1. [Download Android Studio](http://developer.android.com/sdk/index.html)\n1. Launch Android Studio.\n1. Open the sample directory.\n1. Open *File/Project Structure...*\n\n- Click *Download* or *Select NDK location*.\n\n1. Click *File/Sync Project with Gradle Files*.\n1. Click *Run/Run 'app'*.\n\n## Validation layers\n\nAs the validation layer is a sizeable download, we chose to not ship them within\nthe apk. As such in order to enable validation layer, please follow the simple\nsteps below:\n\n1. Download the latest android binaries from:\n   https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases\n1. Place them in their respective ABI folders located in: app/src/main/jniLibs\n1. Go to hellovk.h, search for 'bool enableValidationLayers = false' and toggle\n   that to true.\n\n## Extra information:\n\nAs Vulkan is well documented we will not provide detailed instructions regarding\nthe innerworkings of Vulkan. You should however, find useful comments and\nreferences regarding the android to vulkan bridge. We chose to use Android Glue\nfor a seamless experience. More details here:\nhttps://developer.android.com/reference/games/game-activity/group/android-native-app-glue\n\nThese vulkan tutorials should hopefully cover everything needed to understand\nthe workings of the Vulkan app: https://vulkan-tutorial.com\nhttps://vkguide.dev/docs/chapter-1/vulkan_init_flow/\n\nLastly, you will notice that the Kotlin file is somewhat redundant. Luckily, if\nyou do not require any additional/custom application behaviour, the\nAndroid(Kotlin) source files can be completely removed and the\nAndroidManifest.xml tweaked as specified here:\nhttps://developer.android.com/ndk/samples/sample_na\n\n## Support\n\nIf you've found an error in these samples, please\n[file an issue](https://github.com/googlesamples/android-ndk/issues/new).\n\nPatches are encouraged, and may be submitted by\n[forking this project](https://github.com/googlesamples/android-ndk/fork) and\nsubmitting a pull request through GitHub. Please see\n[CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n\n- [Stack Overflow](http://stackoverflow.com/questions/tagged/android-ndk)\n- [Android Tools Feedbacks](http://tools.android.com/feedback)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fgetting-started-with-vulkan-on-android-codelab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Fgetting-started-with-vulkan-on-android-codelab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fgetting-started-with-vulkan-on-android-codelab/lists"}