Giter Site home page Giter Site logo

lzqlawrence / vulkan-basic-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlesamples/vulkan-basic-samples

0.0 1.0 0.0 57.12 MB

License: Apache License 2.0

C++ 82.54% CMake 0.80% Batchfile 0.17% Shell 2.33% CSS 0.01% Perl 0.21% C 7.37% PowerShell 0.03% GLSL 0.02% Objective-C 0.79% Python 4.34% Makefile 0.47% Assembly 0.29% JavaScript 0.10% HTML 0.22% M4 0.11% NSIS 0.18%

vulkan-basic-samples's Introduction

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:=[gnustl_static|gnustl_shared|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 gnustl_static port, as all 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 Import project (Eclipse, ADT, Gradle) and select the build.gradle file located at the root of your local repo directory.

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.

vulkan-basic-samples's People

Contributors

mark-lunarg avatar tonybarbour avatar courtney-lunarg avatar chrisforbes avatar tobine avatar jon-lunarg avatar olvaffe avatar cnorthrop avatar marky-lunarg avatar karl-lunarg avatar davidlunarg avatar jeremy-lunarg avatar ianatlunarg avatar ianelliottus avatar greg-lunarg avatar courtney-g avatar dustin-lunarg avatar renelindsay avatar hak avatar lenny-lunarg avatar lisa-lunarg avatar stroyan avatar daveh-lunarg avatar ggfan avatar markmlunarg avatar null77 avatar mikes-lunarg avatar pdaniell-nv avatar plohrmann avatar critsec avatar

Watchers

lzqlawrence 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.