Skip to content

Commit

Permalink
Mark moltenvk failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Jul 23, 2023
1 parent 26d3211 commit 0be74b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/boids/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ fn boids() {
optional_features: wgpu::Features::default(),
base_test_parameters: wgpu_test::TestParameters::default()
.downlevel_flags(wgpu::DownlevelFlags::COMPUTE_SHADERS)
.limits(wgpu::Limits::downlevel_defaults()),
.limits(wgpu::Limits::downlevel_defaults())
.molten_vk_failure(),
comparisons: &[wgpu_test::ComparisonType::Mean(0.005)],
});
}
12 changes: 12 additions & 0 deletions tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,18 @@ impl TestParameters {
});
self
}

/// Mark the test as failing on vulkan on mac only
pub fn molten_vk_failure(self) -> Self {
#[cfg(any(target_os = "macos", target_os = "ios"))]
{
self.specific_failure(Some(wgpu::Backends::VULKAN), None, None, false)
}
#[cfg(not(target_os = "macos"))]
{
self
}
}
}

pub fn initialize_test(parameters: TestParameters, test_function: impl FnOnce(TestingContext)) {
Expand Down

0 comments on commit 0be74b5

Please sign in to comment.