Files
Jorge Ortega 295459dcea refactor(cust_raw): Parse macro function renames in cuda headers. (#187)
Adds a custom bindgen callback that prevents function renames due to macro defines while still linking to the intend function after macro expansion. It does this by tracking macros when generating the bindings, so that it can change the name of the function back to what it was before the macro changed and link to the macro expanded function name. Doing so helps prevents breaking changes across CUDA versions when generating the bindings, and generates function bindings that match those used in Nvidia's CUDA documentation.

misc.: optix-sys rebuilds if related optix environment variables change.
misc.: unpin cc and jobserver from add example.
2025-04-04 10:37:47 -07:00
..
2021-11-13 20:11:39 -05:00

CUDA + Rust examples

The examples in here showcase both the GPU side and the CPU side of writing a tool which uses the GPU.

Interactive Path Tracer

This example showcases a very simple interactive Path Tracer inspired by Ray Tracing In One Weekend which runs on CPU or GPU, with the additional option of running OptiX denoising.

Path Tracer

The Path Tracer uses cuda_builder to compile the core path tracer for the GPU and GPU (hardware raytracing), and uses the core path tracer as a normal crate for CPU rendering and sharing structures.