Giter Club home page Giter Club logo

book-vulkan_mastery_1's Introduction

Vulkan Mastery Vol.1

本リポジトリは 「Vulkan Mastery Vol.1」書籍のサンプルプログラムを提供しています。

ビルドについて

本リポジトリのコードは、Windows, Linux, Androidそれぞれを対象としたビルドをサポートしています。

Build (Windows)

前提条件

開発環境として、以下のものをシステムにインストールしてください

  • Vulkan SDK 1.3.280
  • Visual Studio 2022

手順

Developer Command Prompt for VS 2022を開き、Commonフォルダ内のPrepareAssimp.batを実行してください。 その後、各サンプルの sln を開いてビルド・実行してください。

Build (Linux)

前提条件

WaylandとGLFW, cmakeを使用します。 以下のようなコマンドでシステムにインストールしてください。

sudo apt install build-essential cmake git
sudo apt install -y libglfw3-dev libglfw3-wayland

Vulkan SDKのインストールなどは、以下のページを参考にしてください。 https://vulkan.lunarg.com/doc/view/latest/linux/getting_started_ubuntu.html

手順

各サンプルのフォルダでcmakeによるビルドを実行してください。 手順の例を次に示します。

$ cd DrawModel
$ mkdir build; cd build; cmake -D CMAKE_BUILD_TYPE=Debug ..
$ make

注意事項

Ubuntu 22.04 + Wayland の環境にて、描画はうまくいくもののウィンドウ処理に不備があるようで、これは調査中となっています。

Raspberry Pi 向け

Raspberry Pi 4 + Raspberry Pi OS (64bit) の環境では、Dynamic Rendering を無効にしてコンパイル・実行してください。 たとえば、HelloTriangleにおいて、以下の変更を行います。

  • IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING を無効
  • USE_RENDERPASS を有効

Android

Android Studio を使用し、AndroidProjects フォルダ以下のプロジェクトを使用してください。

モデルデータについて

モデルデータは配布元の条件に従ってください。

免責事項

本リポジトリはサンプルコードの提供であり、ビルドや動作を保証するものではありません。 利用する場合には、利用者の責任において使用してください。

バージョン情報

Submoduleで登録しているライブラリは以下のバージョンに固定しています。

  • Dear ImGui : 1.90.3
  • Assimp : 5.3.1
  • glm : 1.0.1

また、シングルヘッダライブラリとして STBより、stb_image.h と stb_image_resize.h を使用しています。

WindowsおよびLinux向けにはGLFWを使用します。 Windows において使用する GLFW は本リポジトリにバイナリを含めています。 バージョンは 3.3.10 となっています。 Linux 環境においてはシステムインストールのものを使います。

book-vulkan_mastery_1's People

Contributors

techmadot avatar

Stargazers

PavilionDV7 avatar Kanta_Yukawa avatar fateshelled avatar

Watchers

 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.