File tree 15 files changed +16
-16
lines changed
15 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl Plugin for CustomMaterialPlugin {
118
118
app. add_asset :: < CustomMaterial > ( )
119
119
. add_plugin ( ExtractComponentPlugin :: < Handle < CustomMaterial > > :: default ( ) )
120
120
. add_plugin ( RenderAssetPlugin :: < CustomMaterial > :: default ( ) ) ;
121
- app. sub_app ( RenderApp )
121
+ app. sub_app_mut ( RenderApp )
122
122
. add_render_command :: < Transparent3d , DrawCustom > ( )
123
123
. init_resource :: < CustomPipeline > ( )
124
124
. init_resource :: < SpecializedPipelines < CustomPipeline > > ( )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub struct IsRedPlugin;
25
25
impl Plugin for IsRedPlugin {
26
26
fn build ( & self , app : & mut App ) {
27
27
app. add_plugin ( ExtractComponentPlugin :: < IsRed > :: default ( ) ) ;
28
- app. sub_app ( RenderApp )
28
+ app. sub_app_mut ( RenderApp )
29
29
. add_render_command :: < Transparent3d , DrawIsRed > ( )
30
30
. init_resource :: < IsRedPipeline > ( )
31
31
. init_resource :: < SpecializedPipelines < IsRedPipeline > > ( )
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl Plugin for CorePipelinePlugin {
85
85
fn build ( & self , app : & mut App ) {
86
86
app. init_resource :: < ClearColor > ( ) ;
87
87
88
- let render_app = app. sub_app ( RenderApp ) ;
88
+ let render_app = app. sub_app_mut ( RenderApp ) ;
89
89
render_app
90
90
. init_resource :: < DrawFunctions < Transparent2d > > ( )
91
91
. init_resource :: < DrawFunctions < Opaque3d > > ( )
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl Plugin for PbrPlugin {
112
112
. after ( VisibilitySystems :: CheckVisibility ) ,
113
113
) ;
114
114
115
- let render_app = app. sub_app ( RenderApp ) ;
115
+ let render_app = app. sub_app_mut ( RenderApp ) ;
116
116
render_app
117
117
. add_system_to_stage (
118
118
RenderStage :: Extract ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ impl Plugin for MeshRenderPlugin {
58
58
59
59
app. add_plugin ( UniformComponentPlugin :: < MeshUniform > :: default ( ) ) ;
60
60
61
- app. sub_app ( RenderApp )
61
+ app. sub_app_mut ( RenderApp )
62
62
. init_resource :: < MeshPipeline > ( )
63
63
. add_system_to_stage ( RenderStage :: Extract , extract_meshes)
64
64
. add_system_to_stage ( RenderStage :: Queue , queue_mesh_bind_group)
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl Plugin for WireframePlugin {
31
31
32
32
app. init_resource :: < WireframeConfig > ( ) ;
33
33
34
- app. sub_app ( RenderApp )
34
+ app. sub_app_mut ( RenderApp )
35
35
. add_render_command :: < Opaque3d , DrawWireframes > ( )
36
36
. init_resource :: < WireframePipeline > ( )
37
37
. init_resource :: < SpecializedPipelines < WireframePipeline > > ( )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl Plugin for CameraPlugin {
53
53
CoreStage :: PostUpdate ,
54
54
crate :: camera:: camera_system :: < PerspectiveProjection > ,
55
55
) ;
56
- app. sub_app ( RenderApp )
56
+ app. sub_app_mut ( RenderApp )
57
57
. init_resource :: < ExtractedCameraNames > ( )
58
58
. add_system_to_stage ( RenderStage :: Extract , extract_cameras) ;
59
59
}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ impl<A: RenderAsset> Default for RenderAssetPlugin<A> {
54
54
55
55
impl < A : RenderAsset > Plugin for RenderAssetPlugin < A > {
56
56
fn build ( & self , app : & mut App ) {
57
- let render_app = app. sub_app ( RenderApp ) ;
57
+ let render_app = app. sub_app_mut ( RenderApp ) ;
58
58
let prepare_asset_system = PrepareAssetSystem :: < A > :: system ( & mut render_app. world ) ;
59
59
render_app
60
60
. init_resource :: < ExtractedAssets < A > > ( )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl<C> Default for UniformComponentPlugin<C> {
63
63
64
64
impl < C : Component + AsStd140 + Clone > Plugin for UniformComponentPlugin < C > {
65
65
fn build ( & self , app : & mut App ) {
66
- app. sub_app ( RenderApp )
66
+ app. sub_app_mut ( RenderApp )
67
67
. insert_resource ( ComponentUniforms :: < C > :: default ( ) )
68
68
. add_system_to_stage (
69
69
RenderStage :: Prepare ,
@@ -145,7 +145,7 @@ where
145
145
{
146
146
fn build ( & self , app : & mut App ) {
147
147
let system = ExtractComponentSystem :: < C > :: system ( & mut app. world ) ;
148
- let render_app = app. sub_app ( RenderApp ) ;
148
+ let render_app = app. sub_app_mut ( RenderApp ) ;
149
149
render_app. add_system_to_stage ( RenderStage :: Extract , system) ;
150
150
}
151
151
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl Plugin for ImagePlugin {
35
35
. unwrap ( )
36
36
. set_untracked ( DEFAULT_IMAGE_HANDLE , Image :: default ( ) ) ;
37
37
38
- app. sub_app ( RenderApp )
38
+ app. sub_app_mut ( RenderApp )
39
39
. init_resource :: < TextureCache > ( )
40
40
. add_system_to_stage ( RenderStage :: Cleanup , update_texture_cache_system) ;
41
41
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl Plugin for ViewPlugin {
27
27
fn build ( & self , app : & mut App ) {
28
28
app. init_resource :: < Msaa > ( ) . add_plugin ( VisibilityPlugin ) ;
29
29
30
- app. sub_app ( RenderApp )
30
+ app. sub_app_mut ( RenderApp )
31
31
. init_resource :: < ViewUniforms > ( )
32
32
. add_system_to_stage ( RenderStage :: Extract , extract_msaa)
33
33
. add_system_to_stage ( RenderStage :: Prepare , prepare_view_uniforms)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub enum WindowSystem {
24
24
25
25
impl Plugin for WindowRenderPlugin {
26
26
fn build ( & self , app : & mut App ) {
27
- app. sub_app ( RenderApp )
27
+ app. sub_app_mut ( RenderApp )
28
28
. init_resource :: < ExtractedWindows > ( )
29
29
. init_resource :: < WindowSurfaces > ( )
30
30
. init_resource :: < NonSendMarker > ( )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl Plugin for SpritePlugin {
42
42
let sprite_shader = Shader :: from_wgsl ( include_str ! ( "render/sprite.wgsl" ) ) ;
43
43
shaders. set_untracked ( SPRITE_SHADER_HANDLE , sprite_shader) ;
44
44
app. add_asset :: < TextureAtlas > ( ) . register_type :: < Sprite > ( ) ;
45
- let render_app = app. sub_app ( RenderApp ) ;
45
+ let render_app = app. sub_app_mut ( RenderApp ) ;
46
46
render_app
47
47
. init_resource :: < ImageBindGroups > ( )
48
48
. init_resource :: < SpritePipeline > ( )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ impl Plugin for TextPlugin {
49
49
. insert_resource ( DefaultTextPipeline :: default ( ) )
50
50
. add_system_to_stage ( CoreStage :: PostUpdate , text2d_system) ;
51
51
52
- let render_app = app. sub_app ( RenderApp ) ;
52
+ let render_app = app. sub_app_mut ( RenderApp ) ;
53
53
render_app. add_system_to_stage (
54
54
RenderStage :: Extract ,
55
55
extract_text2d_sprite. after ( SpriteSystem :: ExtractSprite ) ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ pub fn build_ui_render(app: &mut App) {
66
66
let mut active_cameras = app. world . get_resource_mut :: < ActiveCameras > ( ) . unwrap ( ) ;
67
67
active_cameras. add ( CAMERA_UI ) ;
68
68
69
- let render_app = app. sub_app ( RenderApp ) ;
69
+ let render_app = app. sub_app_mut ( RenderApp ) ;
70
70
render_app
71
71
. init_resource :: < UiPipeline > ( )
72
72
. init_resource :: < SpecializedPipelines < UiPipeline > > ( )
You can’t perform that action at this time.
0 commit comments