Code Monkey home page Code Monkey logo

nrisamples's Introduction

NRI Samples

Build instructions

Windows

  • Install WindowsSDK and VulkanSDK
  • Clone project and init submodules
  • Generate and build project using cmake

Or by running scripts only:

  • Run 1-Deploy.bat
  • Run 2-Build.bat

Linux (x86-64)

  • Install VulkanSDK, libx11-dev, libxrandr-dev
  • Clone project and init submodules
  • Generate and build project using cmake

Linux (aarch64)

  • Install libx11-dev, libxrandr-dev
  • Clone project and init submodules
  • Generate and build project using cmake

CMake options

-DUSE_MINIMAL_DATA=ON - download minimal resource package (90MB)

-DDISABLE_SHADER_COMPILATION=ON - disable compilation of shaders (shaders can be built on other platform)

-DDXC_CUSTOM_PATH=my/path/to/dxc - custom path to dxc

-DUSE_DXC_FROM_PACKMAN_ON_AARCH64=OFF - use default path for dxc

How to run

The executables load resources from _Data, therefore please run the samples with working directory set to the project root folder. The executables can be found in _Build.

How to add new sample

Create a new cpp file in Source/ and add add_sample(YourFileName) in CMakeLists.txt.

CMake script scans and adds all shaders from Source/Shaders to a project called SampleShaders, therefore you will need to reconfigure CMake project after adding new shaders.

nrisamples's People

Contributors

dzhdannv avatar halldorfannar 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.