3 unstable releases

0.2.0 Jan 29, 2019
0.1.1 Oct 18, 2018
0.1.0 Oct 18, 2018

#827 in Graphics APIs

Download history 21/week @ 2024-02-19 42/week @ 2024-02-26 60/week @ 2024-04-01

60 downloads per month

MIT/Apache

600KB
6K SLoC

Rust 4.5K SLoC // 0.0% comments CUDA 1K SLoC // 0.1% comments

optix-rs

A Rust wrapper for NVidia's OptiX raytracing library.

In order to use this crate as a dependency you must have CMake (>= 3.5), OptiX (>= 5) and CUDA (>= 9) installed. Please take a look at the example project here: https://github.com/anderslanglands/optix-rs-pathtracer-example to see a minimal example of the setup required.

To build this crate from the repository you need to tell Cargo (and CMake) where to find OptiX and CUDA you can either create a build-settings.toml file alongside build.rs, with their path specified with optix_root and cuda_root, or set the OPTIX_ROOT and CUDA_ROOT environment variables to point to the installations.

env OPTIX_ROOT="/Developer/NVIDIA/Optix-5.0" CUDA_ROOT="/Developer/NVIDIA/CUDA-9.2" cargo run --example pathtracer

lib.rs:

OptiX

An oxidized wrapper for NVidia's OptiX GPU raytracing library

Dependencies

~5–7MB
~141K SLoC