Giter Site home page Giter Site logo

ikeikep / vulkan-hpp-triangle-android Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 5.93 MB

A vulkan-hpp implementation of the popular triangle.

License: MIT License

CMake 0.92% C 72.49% Java 2.31% Makefile 0.19% Batchfile 0.01% GLSL 0.01% HTML 0.03% Shell 2.08% M4 1.48% PowerShell 0.08% Roff 0.02% C++ 16.40% Objective-C 3.51% Perl 0.14% Python 0.02% Metal 0.02% Assembly 0.20% JavaScript 0.11%

vulkan-hpp-triangle-android's Introduction

Vulkan-hpp Triangle for Android

A minimalist implementation of the "hello triangle" in C++ using Vulkan-hpp. Supports Windows & Android.
For whoever is learning vulkan by following the vulkan-tutorial and wants to quickly check the Vulkan-hpp equivalent code, this is for you. And with no surprises, most of the vulkan logic was based on that tutorial.

Highlights:

  • C++ first (e.g. avoided Java where possible)
  • Terminal friendly with no need to resort to IDEs like Visual Studio
  • Modern and clean CMake
  • Some inline comments explaining vulkan code
  • Android support with clutter free gradle files

Build

Windows

mkdir build
cd build
cmake .. -G Ninja # add "-DCMAKE_BUILD_TYPE=Release" for release mode
ninja

Note: For MSVC, these commands need to be run within a Developer Command Prompt.

Android

Open Android Studio, Sync Project and then press make.

On the terminal:

cd android
gradlew assembleDebug

Dependencies

  • SDL 2 (for Window management)

Requirements

  • CMake 3.16.0
  • Vulkan SDK
  • C++ Compiler (e.g. MSVC or clang)
  • Ninja or other build system such as Visual Studio
  • Android Studio / Android SDK and NDK

vulkan-hpp-triangle-android's People

Contributors

ikeikep avatar

Stargazers

Sebastian Starosz avatar Nikita Gordeev avatar Sergey Silaev avatar Fernando Alves avatar Noah Metz avatar

Watchers

 avatar

Forkers

peyo-hd

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.