Skip to main content

ray_trace

Function ray_trace 

Source
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 rendered
  • output - Channel where render progress will be sent
  • camera_config - Channel to send updated camera configurations
  • abort - Channel to send abort signals to the renderer
  • idle - If true, the renderer will keep listening for camera updates after finishing the initial samples