Cargo Features
raytracer-rs has no features set by default.
[dependencies]
raytracer-rs = { version = "0.1.3", features = ["wgpu"] }
- wgpu
-
Enables wgpu of eframe ^0.19.0
eframe:
Use
wgpu
for painting (viaegui-wgpu
).This overrides the
glow
feature.By default, only WebGPU is enabled on web. If you want to enable WebGL, you need to turn on the
webgl
feature of cratewgpu
:wgpu = { version = "*", features = ["webgpu", "webgl"] }
By default, eframe will prefer WebGPU over WebGL, but you can configure this at run-time with
NativeOptions::wgpu_options
.
raytracer-rs has 1 feature without comment.