@@ -2,7 +2,7 @@ use bevy::prelude::*;
2
2
use bevy_internal:: asset:: AssetPlugin ;
3
3
use bevy_internal:: core_pipeline:: CorePipelinePlugin ;
4
4
use bevy_internal:: input:: InputPlugin ;
5
- use bevy_internal:: render:: options :: WgpuOptions ;
5
+ use bevy_internal:: render:: settings :: WgpuSettings ;
6
6
use bevy_internal:: render:: RenderPlugin ;
7
7
use bevy_internal:: sprite:: SpritePlugin ;
8
8
use bevy_internal:: text:: TextPlugin ;
@@ -18,7 +18,7 @@ impl Plugin for HeadlessUiPlugin {
18
18
fn build ( & self , app : & mut App ) {
19
19
// These tests are meant to be ran on systems without gpu, or display.
20
20
// To make this work, we tell bevy not to look for any rendering backends.
21
- app. insert_resource ( WgpuOptions {
21
+ app. insert_resource ( WgpuSettings {
22
22
backends : None ,
23
23
..Default :: default ( )
24
24
} )
@@ -65,7 +65,7 @@ fn test_button_translation() {
65
65
let button = * query. iter ( & app. world ) . collect :: < Vec < _ > > ( ) . first ( ) . unwrap ( ) ;
66
66
67
67
// The button's translation got updated because the UI system had a window to place it in.
68
- // If we hadn't added a window, the button's translation would at this point be all zero's .
68
+ // If we hadn't added a window, the button's translation would at this point be all zeros .
69
69
let button_transform = app. world . entity ( button) . get :: < Transform > ( ) . unwrap ( ) ;
70
70
assert_eq ! (
71
71
button_transform. translation. x. floor( ) as u32 ,
0 commit comments