Skip to content

Commit

Permalink
Add snapshot test for image_extend_modes_nearest_neighbor
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jan 4, 2025
1 parent 5a7ef51 commit ea95012
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/scenes/src/test_scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,10 @@ mod impls {
image_extend_modes_helper(scene, ImageQuality::Medium);
}

pub(super) fn image_extend_modes_nearest_neighbor(scene: &mut Scene, params: &mut SceneParams<'_>) {
pub(super) fn image_extend_modes_nearest_neighbor(
scene: &mut Scene,
params: &mut SceneParams<'_>,
) {
params.resolution = Some(Vec2::new(1500., 1500.));
params.base_color = Some(palette::css::WHITE);
image_extend_modes_helper(scene, ImageQuality::Low);
Expand Down
3 changes: 3 additions & 0 deletions vello_tests/snapshots/image_extend_modes_nearest_neighbor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions vello_tests/tests/snapshot_test_scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,11 @@ fn snapshot_image_extend_modes() {
let params = TestParams::new("image_extend_modes", 375, 375);
snapshot_test_scene(test_scene, params);
}

#[test]
#[cfg_attr(skip_gpu_tests, ignore)]
fn snapshot_image_extend_modes_nearest_neighbor() {
let test_scene = test_scenes::image_extend_modes_nearest_neighbor();
let params = TestParams::new("image_extend_modes_nearest_neighbor", 375, 375);
snapshot_test_scene(test_scene, params);
}

0 comments on commit ea95012

Please sign in to comment.