Giter Site home page Giter Site logo

smiledmark / learnvulkan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from engineer1109/learnvulkan

0.0 0.0 0.0 3.92 MB

Learn Vulkan. Advanced examples of Vulkan and QT.

License: MIT License

CMake 1.29% C++ 97.66% Makefile 0.09% GLSL 0.83% C 0.13%

learnvulkan's Introduction

LearnVulkan

This project is mainly faced to GUI engineering applications and advanced backend computing, such as X11, Qt, ffmpeg, OpenCV, CUDA and so on. Combining Vulkan with engineering applications, not a pure demo.

Planned Application Areas:

  1. Imaging Proceessing of Vulkan
  2. Medical Imaging of Vulkan
  3. Vulkan on Qt (GAMES)
  4. Vulkan on XWindow (GAMES)
  5. Vulkan with CUDA
  6. Vulkan server rendering with ffmpeg

What is more than SaschaWillems's Project

This project is partly based on SaschaWillems's Project, add some functions of cross-platform window operation , deleted MFC code of the main function(WinMain), and provides a unified interface api for cross-platform.
Use sharelib (libvulkanbase.so, libvulkan_basicengine.so) instead of static lib.
For examples of cross-platform api:

int main(int argc,char** argv){
    bool debug=false;
    StaticTriangle* statictrianglePtr=new StaticTriangle(debug);
    statictrianglePtr->initVulkan();
    statictrianglePtr->initWindow();
    statictrianglePtr->prepare();
    statictrianglePtr->renderLoop();
    delete statictrianglePtr;
    return 1;
}

image
The libvulkan_basicengine.so also integrates 'stb_image' from https://github.com/JoeyDeVries/LearnOpenGL, supporting jpg and png image loading, and you don't need to generate ktx images for Vulkan Texture now. See 'vulkan_basicengine_texture.h'.

Finally, welcome to clone or fork my project, remember to star if you consider my project is quite good.

Requirements

Supported System:

Now: Linux(Mainly) Windows(Partly) Planned supported: Mac Android IOS

Libraries

Vulkan: 1.1.121+ Glm: 0.9.9+ Xcb & Xlib GLFW3
OpenCV: 4.0+ (Some projects need) CUDA: 10.0+ (Some projects need) Qt: 5.12+ (Some projects need)

C/C++ Compiler

GCC 7+ using -std=c++17 MSVC 2017

Compile & BUILD

For Linux/UNIX

If you don't have GLM, GLI, IMGUI, you need "git submodule update --init" first.

   git submodule update --init

Compile

    cmake ..
    make
    make install

The programs will be installed in the {PROJECT_DIR}/bin .

For Qt

    cmake .. -DBUILD_QtExamples=ON

For Windows

Compile

    cmake -G "Visual Studio 14 2015 Win64" -T host=x64 ..
    cmake --build . --config Release
    cmake --build . --config Release --target INSTALL

The programs will be installed in the {PROJECT_DIR}/Release .

PLANS

  1. Simple Examples (doing)
  2. Advanced Examples
  3. CUDA and Vulkan
  4. Qt and Vulkan
  5. X11 and Vulkan
  6. Vulkan and deep learning
  7. Vulkan Server Rendering

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.