Skip to content

AndewNN/CUDA_Ray_Tracer

Repository files navigation

CUDA Ray Tracing

Result of each chapter in the ebook "Ray Tracing in One Weekend" by Peter Shirley.

Simple Gradient Image

Simple Gradient Image

Gradient Background

Gradient Background

Simple Sphere

Simple Sphere

Spheres with Normal Map

Spheres with Normal Map

Anti-Aliasing

Without Anti-Aliasing
Without Anti-Aliasing
With Anti-Aliasing
With Anti-Aliasing

Diffuse Material

Diffuse Material

Metal Material

Metal Material

Debugging Tools

  • compute-sanitizer [path/to/cuda_executable]
  • cuda-gdb [path/to/cuda_executable] + run [args] / break [line or function] / bt (backtrace) / frame [frame idx from bt] / print ((@global T*)variable)[idx]
  • demangler - just put GCC symbol name and get demangled name

About

C++ -> CUDA go fast~~

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors