Code Monkey home page Code Monkey logo

nanairortc9's Introduction

NanairoRtc9

The path tracing renderer for RTC9.

環境要件

  • C++20をサポートするコンパイラ
    • Visual Studio 2022
    • Clang 16 以降
    • GCC 13 以降
  • Git
  • CMake: 3.27
  • Python: 3
  • Vulkan SDK: 1.3.261
    • Vulkan Memory Allocator header 込でインストールしてください

任意

以下のツールは入れておくと Nanairo のビルド時間を短縮できます

  • Clspv: 開発中のためmasterブランチを使用

ビルド

サブモジュールのダウンロード

git submodule update --init --recursive

CMake

cmakeのビルドは build ディレクトリで行います。

ClspvがPATHに無い場合

ClspvがPATHにある場合はNanairoはそれを見つけて使います。 もしClspvが無い場合は以下のcmakeコマンドに -DZIVC_USES_OWN_CLSPV=ON を足して実行してください。 時間はかかりますがNanairoはClspvを内部でビルドしてそれを使用します。

Visual Studio MSVC

ここではコマンドライン (e.g. C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat) からcmakeを実行する方法を記述します。 GitやCMake、PythonのPATHを設定して実行してください。

cmake -G"Visual Studio 17 2022" -Ax64 -Thost=x64 -DCMAKE_BUILD_TYPE=Release -DZIVC_BAKE_KERNELS=ON -DZ_ENABLE_HARDWARE_FEATURES=ON ..

Ubuntu GCC

CC=gcc-13 CXX=g++-13 cmake -DCMAKE_BUILD_TYPE=Release -DZIVC_BAKE_KERNELS=ON -DZ_ENABLE_HARDWARE_FEATURES=ON ..

Ubuntu Clang

CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DZ_CLANG_USES_LLVM_TOOLS=ON -DZIVC_BAKE_KERNELS=ON -DZ_ENABLE_HARDWARE_FEATURES=ON ..

ビルド実行

Windows

cmake --build . --config Release --parallel -- -noLogo -v:minimal -clp:Summary

Ubuntu

cmake --build . --config Release --parallel

実行

ctest -C Release -V -R Nanairo-single-vulkan

画像は test ディレクトリに出力されます。

nanairortc9's People

Contributors

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