Git Product home page Git Product logo

vulkan-basic-samples's Introduction

Vulkan Samples

This repository is an Android port of LunarG sample kit.

Prerequisites

  • Android Studio 2.0 or later.
  • Android SDK N-preview or later
  • NDK r12 beta or later

Sample import

To import the samples, follow steps below:

####Step 1: (Optional) Build shaderc in NDK. This step is optional for API_samples as Android Studio project automatically execute it. In a command-prompt navigate to “${ndk_root}/sources/third_party/shaderc” Run the following command

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

APP_STL can be one of gnustl_static, gnustl_shared, c++_static, c++_shared. Here, it’s going to use statically linked version of libC++ as samples are using it.

####Step 2: Sync external project and generate files. In a command-prompt navigate to “LunarGSamples", run the following commands

./update_external_sources.sh -s -g

This process is required to build Hologram sample.

####Step 3: (Optional) Build Android Studio project file. This step is optional as the repository includes a pregenerated project files that includes All ABIs.

cmake -DANDROID=ON -DANDROID_ABI=[armeabi-v7a|arm64-v8a|x86|x86_64|all(default)]

####Step 4: Import the samples in Android Studio by choosing “Import project (Eclipse, ADT, Gradle)” and choose: LunarGSamples/API-Samples/android/build.gradle

Meta data for Android Studio sample import.

================== 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 an Android port of LunarG sample kit.

Getting Started

Refer Getting Started Guide.

Screenshots

screenshot

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.

vulkan-basic-samples's People

Contributors

courtney-lunarg avatar tonybarbour avatar jon-lunarg avatar olvaffe avatar cnorthrop avatar mark-lunarg avatar chrisforbes avatar ianatlunarg avatar davidlunarg avatar ianelliottus avatar marky-lunarg avatar courtney-g avatar greg-lunarg avatar jeremy-lunarg avatar tobine avatar hak avatar karl-lunarg avatar lisa-lunarg avatar dustin-lunarg avatar stroyan avatar plohrmann avatar baldurk avatar pdaniell-nv avatar srk-lunarg avatar jensowen avatar bog-dan-ro avatar gfxstrand avatar ggfan avatar pimanttr avatar nwnk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.