use crate::{ extract_resource::ExtractResource, render_resource::{ShaderType, UniformBuffer}, renderer::{RenderDevice, RenderQueue}, Extract, RenderApp, RenderStage, }; use bevy_app::{App, Plugin}; use bevy_core::FrameCount; use bevy_ecs::prelude::*; use bevy_reflect::Reflect; use bevy_time::Time; pub struct GlobalsPlugin; impl Plugin for GlobalsPlugin { fn build(&self, app: &mut App) { if let Ok(render_app) = app.get_sub_app_mut(RenderApp) { render_app .init_resource::() .init_resource::