mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* Move to combined examples * Fix paths * Curtail some tests * Format * Clippy * Fix wasm * Refactor main for wasm * Style sheet * Readme * Lock
19 lines
660 B
Rust
19 lines
660 B
Rust
use super::*;
|
|
use wgpu_test::{gpu_test, GpuTestConfiguration, TestParameters};
|
|
|
|
#[gpu_test]
|
|
static SYNC: GpuTestConfiguration = GpuTestConfiguration::new()
|
|
.parameters(
|
|
// Taken from hello-compute tests.
|
|
TestParameters::default()
|
|
.downlevel_flags(wgpu::DownlevelFlags::COMPUTE_SHADERS)
|
|
.limits(wgpu::Limits::downlevel_defaults()),
|
|
)
|
|
.run_async(|ctx| async move {
|
|
let ExecuteResults {
|
|
patient_workgroup_results,
|
|
hasty_workgroup_results: _,
|
|
} = execute(&ctx.device, &ctx.queue, ARR_SIZE).await;
|
|
assert_eq!(patient_workgroup_results, [16_u32; ARR_SIZE]);
|
|
});
|