# T2 Running Hardware Ray Tracing Tutorial Examples

### GPU requirement

You need to have a GPU which supports hardware-accelerated ray tracing, for example, Nvidia RTX 20, 30, 40, 50 series or AMD Radeon RX series.

### Step 1 Install the Vulkan SDK

#### Download Vulkan SDK from

{% embed url="<https://vulkan.lunarg.com/sdk/home#windows>" %}

#### Install Vulkan SDK on your computer

Note: Vulkan has been installed in MS213, 214, 215 for KED students

### Step 2 Try the Vulkan Ray Tracing Tutorial Examples

Download the Vulkan Ray Tracing Tutorial code from the Github link in the tutorial

<https://nvpro-samples.github.io/vk_raytracing_tutorial_KHR/>

**Note: If you are KED students and use the KED lab computers, please download the following source code with nvpro\_core2.**&#x20;

Otherwise, you need to manually download nvpro\_core2 from Git and put that under the root directory.

{% file src="<https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FPcW6gB6MpmkSwOloZu3e%2Fvk_rt_tutorial_KHR-2_with_nvpro_core2.zip?alt=media&token=2c229393-e393-4c05-90e8-cd56aa997bb9>" %}

Build the downloaded project with VSCode or Visual Studio

Run the tutorial examples, for eample

02\_basic

06\_reflection

08\_intersection

09\_motion\_blur

10\_position\_fetch

12\_infinite\_plan

14\_animation

16\_ray\_query

### Step 3 Study the source code of 02\_basic

#### 02\_basic.cpp

Read 02\_basic.cpp to have a sense of Vulkan ray tracing APIs.

#### rtbasic.slang

Read rtbasic.slang to know the Raygen, Closest hit, Miss shaders.

Note: Slang is a shader language similar to HLSL.
