MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / info

Method info

examples/cuda/cpu/path_tracer/src/cpu/mod.rs:46–57  ·  view source on GitHub ↗
(&self, ui: &Ui, system: &System)

Source from the content-addressed store, hash-verified

44 }
45
46 pub fn info(&self, ui: &Ui, system: &System) {
47 let cores = system.physical_core_count().unwrap();
48 let processor = &system.processors()[0];
49
50 let group = ui.begin_group();
51 ui.text(format!(
52 "CPU: {}MHz, {} cores",
53 processor.frequency(),
54 cores
55 ));
56 group.end();
57 }
58
59 /// Resets and reallocates the entire scene.
60 pub fn reset_scene(&mut self, scene: &Scene) {

Callers 1

renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected