MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / start

Function start

examples/runners/wgpu/src/compute.rs:6–12  ·  view source on GitHub ↗
(options: &Options)

Source from the content-addressed store, hash-verified

4use wgpu::util::DeviceExt;
5
6pub fn start(options: &Options) {
7 env_logger::init();
8
9 let compiled_shader_modules = maybe_watch(options, None);
10
11 futures::executor::block_on(start_internal(options, compiled_shader_modules));
12}
13
14async fn start_internal(options: &Options, compiled_shader_modules: CompiledShaderModules) {
15 let backends = wgpu::util::backend_bits_from_env().unwrap_or(wgpu::Backends::PRIMARY);

Callers 1

mainFunction · 0.70

Calls 2

maybe_watchFunction · 0.85
start_internalFunction · 0.85

Tested by

no test coverage detected