1#![allow(clippy::arc_with_non_send_sync)] #![warn(clippy::allow_attributes)]
3
4pub mod framework;
5pub mod utils;
6
7pub mod big_compute_buffers;
8pub mod boids;
9pub mod bunnymark;
10pub mod conservative_raster;
11pub mod cube;
12pub mod hello_synchronization;
13pub mod hello_triangle;
14pub mod hello_windows;
15pub mod hello_workgroups;
16pub mod mesh_shader;
17pub mod mipmap;
18pub mod msaa_line;
19pub mod multiple_render_targets;
20pub mod multiview;
21pub mod ray_cube_compute;
22pub mod ray_cube_fragment;
23pub mod ray_cube_normals;
24pub mod ray_scene;
25pub mod ray_shadows;
26pub mod ray_traced_triangle;
27pub mod render_to_texture;
28pub mod repeated_compute;
29pub mod shadow;
30pub mod skybox;
31pub mod srgb_blend;
32pub mod stencil_triangles;
33pub mod storage_texture;
34pub mod texture_arrays;
35pub mod timestamp_queries;
36pub mod uniform_values;
37pub mod water;
38
39#[cfg(test)]
40fn all_tests() -> Vec<wgpu_test::GpuTestInitializer> {
41 #[cfg_attr(
42 target_arch = "wasm32",
43 expect(unused_mut, reason = "non-wasm32 needs this mutable")
44 )]
45 let mut test_list = vec![
46 boids::TEST,
47 bunnymark::TEST,
48 conservative_raster::TEST,
49 cube::TEST,
50 cube::TEST_LINES,
51 hello_synchronization::tests::SYNC,
52 mesh_shader::TEST,
53 mipmap::TEST,
54 mipmap::TEST_QUERY,
55 msaa_line::TEST,
56 multiple_render_targets::TEST,
57 ray_cube_compute::TEST,
58 ray_cube_fragment::TEST,
59 ray_cube_normals::TEST,
60 ray_scene::TEST,
61 ray_shadows::TEST,
62 ray_traced_triangle::TEST,
63 shadow::TEST,
64 skybox::TEST,
65 skybox::TEST_ASTC,
66 skybox::TEST_BCN,
67 skybox::TEST_ETC2,
68 srgb_blend::TEST_LINEAR,
69 srgb_blend::TEST_SRGB,
70 stencil_triangles::TEST,
71 texture_arrays::TEST,
72 texture_arrays::TEST_NON_UNIFORM,
73 texture_arrays::TEST_UNIFORM,
74 timestamp_queries::tests::TIMESTAMPS_ENCODER,
75 timestamp_queries::tests::TIMESTAMPS_PASSES,
76 timestamp_queries::tests::TIMESTAMPS_PASS_BOUNDARIES,
77 water::TEST,
78 ];
79
80 #[cfg(not(target_arch = "wasm32"))]
81 {
82 test_list.push(big_compute_buffers::tests::TWO_BUFFERS);
83 }
84
85 test_list
86}
87
88#[cfg(test)]
89wgpu_test::gpu_test_main!(all_tests());