Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit b2dd10f Jan 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.google Move .google/ files to right place. May 3, 2016
API-Samples Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
Layer-Samples header: Update sample layers to 1.1.73 Apr 16, 2018
Sample-Programs/Hologram Hologram sample upgraded to use updated MoltenVK config functions. Oct 3, 2018
build-android Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
cmake Remove Vulkan-LoaderAndValidationLayers submodule Jul 26, 2018
demos Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
external_revisions external: Update glslang commit ID, fix LVT Feb 6, 2018
gradle/wrapper
image Add gradle project file in the root of the sample folder. May 3, 2016
layers Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
loader Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
samples_images Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
scripts Update known good without glslang extension workarounds Sep 27, 2018
tests Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
windowsRuntimeInstaller Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
.clang-format Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
.gitattributes repo: normalize line termination across repo Oct 30, 2017
.gitignore Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
.gitmodules Remove Vulkan-LoaderAndValidationLayers submodule Jul 26, 2018
BUILD.md build:Fix android cmake command Sep 25, 2018
CMakeLists-SDK.txt SDK-CMAKE: Updated to not build Overlay directory Sep 28, 2018
CMakeLists.txt Revert "Update known good, account for new extensions in glslang" Sep 27, 2018
CONTRIBUTING.md docs: Additional updates and corrections Jan 5, 2018
COPYRIGHT.txt Merge branch 'trunk' Oct 30, 2017
LICENSE.txt Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
MANIFEST.md Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
README-contrib.md Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
README.md Update README.md Jan 14, 2019
build.gradle Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
build_windows_samples_sdk.bat repo: normalize line termination across repo Oct 30, 2017
build_windows_targets.bat Merge branch 'trunk' Feb 6, 2018
gradle.properties Add gradle project file in the root of the sample folder. May 3, 2016
gradlew Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017
gradlew.bat Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
samples_index.html docs: Update samples_index with new 1.1 samples Mar 9, 2018
settings.gradle Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
settings.gradlee Merge branch 'upstream-master' into merge-upstream Oct 8, 2018
update_external_sources.bat build: Add LVL as a submodule Feb 26, 2018
update_external_sources.sh build: Add LVL as a submodule Feb 26, 2018
vulkan_lunarg_icon.png Sync up with upstream repo git@github.com:LunarG/VulkanSamples.git @ Apr 13, 2017

README.md

Vulkan API samples

Demonstrates basic usages of Vulkan APIs.

Introduction

The project includes series of samples demonstrating a basic usage of Vulkan APIs. This repository is a replication of LunarG sample kit, refer to wiki for more background.

Getting Started

Refer to the Getting Started guide.

Screenshots

screenshot

Prerequisites

Sample Import

To import the samples, follow the steps below:

Step 1: Build shaderc in the NDK

From the command-prompt, navigate to the ${ndk_root}/sources/third_party/shaderc directory. Then, run the following command:

../../../ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_STL:=[c++_static|c++_shared] APP_ABI=[armeabi-v7a|arm64-v8a|x86|x86_64|all] libshaderc_combined -j16

For this project, the APP_STL value is set to use the c++_static, as all of the project samples are using it.

Step 2: Import the samples into Android Studio

You can use one of the following methods to install this project in Android Studio:

  • Import Android Code Sample: Choose Import an Android code sample, then search for and select Vulkan API samples. Android Studio downloads the sample code directly from Github.
  • Import Project: Use this method only if you've already cloned this project from GitHub into a local repo. From Android Studio, choose Open an existing Android Studio project and select the build.gradle file located at the root of your local repo directory.

The samples are configured to build armeabi-v7a; to build other android ARCH, change abiFilters in $your-project/build.gradle.

Note: This project includes 40+ samples and may take time to load on some platforms, such as Windows OS.

Support

If you've found an error in this sample, please file an issue: https://github.com/googlesamples/<...>/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

License

Copyright 2016 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.