pub fn ray_trace<'a>(
scene: Scene,
output: &'a Sender<RenderProgress>,
camera_config: &'a Receiver<CameraConfig>,
abort: &'a Receiver<bool>,
device: &Device,
queue: &Queue,
idle: bool,
) -> Result<(), Box<dyn Error>>Expand description
Executes the ray tracing with the given Scene and reports RenderProgress on
the output Sender. Listens to abort Receiver for aborting a started ray trace operation
ยงArguments
scene- A scene describing how, and what should be renderedoutput- Channel where render progress will be sentcamera_config- Channel to send updated camera configurationsabort- Channel to send abort signals to the rendereridle- If true, the renderer will keep listening for camera updates after finishing the initial samples