Skip to content

Latest commit

 

History

History
87 lines (46 loc) · 3.33 KB

QuickStart.md

File metadata and controls

87 lines (46 loc) · 3.33 KB

RTXGI Quick Start

The fastest way to start learning RTXGI is to clone, build, and run the Test Harness sample application provided alongside the SDK.

Clone the Code and Sample Content

  1. Clone the repository (with all submodules)

    git clone --recursive https://github.com/NVIDIAGameWorks/RTXGI.git

  2. Download the dependencies using Packman

    update_dependencies.bat (Windows)

    update_dependencies.sh (Linux)

    After executing the appropriate script, the d3d and dxc directories containing the DirectX12 Agility SDK and DirectX Shader Compiler (respectively) should exist next to the cloned files from Step 1.

  3. Install the Vulkan SDK (optional on Windows)

  4. Clone the Khronos Sponza GLTF content (optional)

Configure with CMake

  1. Install CMake. The CMake GUI is convenient and easy to use.

  2. Open CMake GUI and fill in the path options.

    • On the source code line, fill in the path to where you have cloned this repository on your machine (e.g. C:/rtxgi).

    • On the build binaries line, fill in the path to the repository plus /build (e.g. C:/rtxgi/build).

      CMake paths

  3. Click Configure

    • If using Visual Studio 2017 on Windows, select x64 as the platform for the generator in the dropdown.
    • If using Visual Studio 2019 or later on Windows, the platform is x64 by default.
  4. Click Generate

    • The generated Visual Studio project is located in [path-to-repo]/build/RTXGI.sln (e.g. C:/rtxgi/build/RTXGI.sln).

Build and Run

Windows

  1. Click Open Project in CMake to open the generated Visual Studio solution.

    • Note: there are separate projects for the D3D12 and Vulkan versions of the SDK and sample application(s). If the Vulkan SDK is not installed, or you disable Vulkan in the CMake options, the -VK projects are not generated.

      CMake paths

  2. Build the solution.

    • Note: if you want to just build the RTXGI SDK, uncheck the RTXGI_BUILD_SAMPLES option in CMake, click Generate, and reload the Visual Studio solution. The RTXGI Samples and Thirdparty folders will be removed.
  3. Set the Startup Project to TestHarness-D3D12 (or TestHarness-VK).

  4. Run the Test Harness.


Linux

  1. Open Visual Studio Code.

  2. Open the folder (File->Open Folder) where you cloned the repository (e.g. C:rtxgi/)

    • The VSCode CMake Tools Extension is useful if you want to configure, generate, and build all in VSCode.

      Visual Studio Code

  3. Build the default target.

  4. Select Run->Start without Debugging

    • This uses the launch arguments in [path-to-repo]/.vscode/launch.json

Enjoy

The Cornell Box scene is loaded by default and you should see the below result:

CMake paths