1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Shared setup for the GPU tests: a windowless app that still renders and computes.
use ;
use RenderTarget;
use *;
use RenderPlugin;
use TextureFormat;
use tick_global_task_pools_on_main_thread;
use ExitCondition;
use WinitPlugin;
/// `DefaultPlugins` without a window or event loop, compiling pipelines on first use so frames
/// measure the simulation rather than the shader compiler.
/// Wait for the renderer (created asynchronously) and finish plugin setup, as `App::run` does.
/// A camera needs a target to have a view: Bevy 0.20's atmosphere environment probe unwraps the
/// view uniforms, so a target-less camera panics the render world. 256 × 256 is enough.