/sol-rs

Vulkan rendering sandbox for raytracing

Primary LanguageRust

sol-rs ☀

sol-rs is a small rendering toolkit for Vulkan, with a focus on real-time raytracing (which is not currently available via other APIs such as WebGPU). It hosts convenience wrappers but also exposes ash directly. Tested on Windows/NVIDIA, but the non-raytracing samples also work on Mac via MoltenVK.

However, this remains a personal sandbox for learning and experimentation so use at your own risk!

Requirements

LunarG Vulkan SDK installation.

On Windows, setting a VULKAN_SDK environment variable to the 1.2.162.0 SDK installation folder should prevent the need for building shaderc from source. Otherwise, additional installations such as Ninja may be required. Please refer to the following instructions if you run into shaderc-related issues.

Examples

screenshot cargo run --release --example 5-pathtrace -- --model models/tunnel.gltf --sky

screenshot cargo run --release --example 5-pathtrace -- --model models/cornell.gltf

screenshot cargo run --release --example 4-ray-ao

screenshot cargo run --release --example 1-cube

References