MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / main

Function main

examples/snow.rs:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3#[allow(unused_variables)]
4#[allow(unused_must_use)]
5fn main() {
6 set_device(0);
7 info();
8
9 let wnd = Window::new(1280, 720, String::from("Snow"));
10
11 let dims = Dim4::new(&[1280, 720, 3, 1]);
12
13 loop {
14 wnd.draw_image(&randu::<f32>(dims), None);
15
16 if wnd.is_closed() {
17 break;
18 }
19 }
20}

Callers

nothing calls this directly

Calls 4

set_deviceFunction · 0.85
infoFunction · 0.85
draw_imageMethod · 0.80
is_closedMethod · 0.80

Tested by

no test coverage detected