aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-06-03 21:39:43 -0400
committerLibravatar Silas Bartha <[email protected]>2024-06-03 21:39:43 -0400
commitef6c2954156b2b0cf4abfe583d8faaf546f4e7c4 (patch)
treef5da21c83771023d55036ad94ee52d8db992ffbd /src/lib.rs
parent0ac133c0c396c8b75892cb6e43a52ad973046e2d (diff)
Removed toolchain config
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c112610..05f387d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,19 +1,24 @@
-use bevy::{prelude::*, render::{render_asset::RenderAssetPlugin, extract_component::ExtractComponentPlugin, RenderApp, Render, RenderSet, render_graph::RenderGraph, graph::CameraDriverLabel}};
+use bevy::{
+ prelude::*,
+ render::{
+ extract_component::ExtractComponentPlugin, graph::CameraDriverLabel,
+ render_asset::RenderAssetPlugin, render_graph::RenderGraph, Render, RenderApp, RenderSet,
+ },
+};
use components::FramebufferExtractDestination;
-use nodes::{FramebufferExtractNode, FramebufferExtractLabel};
+use nodes::{FramebufferExtractLabel, FramebufferExtractNode};
use render_assets::FramebufferExtractSource;
pub mod components;
-mod systems;
mod nodes;
pub mod render_assets;
+mod systems;
pub struct FramebufferExtractPlugin;
impl Plugin for FramebufferExtractPlugin {
fn build(&self, app: &mut App) {
- app
- .register_type::<FramebufferExtractSource>()
+ app.register_type::<FramebufferExtractSource>()
.init_asset::<FramebufferExtractSource>()
.register_asset_reflect::<FramebufferExtractSource>()
.add_plugins((
@@ -22,13 +27,12 @@ impl Plugin for FramebufferExtractPlugin {
));
let render_app = app.sub_app_mut(RenderApp);
- render_app
- .add_systems(
- Render,
- systems::extract_framebuffers
- .after(RenderSet::Render)
- .before(RenderSet::Cleanup),
- );
+ render_app.add_systems(
+ Render,
+ systems::extract_framebuffers
+ .after(RenderSet::Render)
+ .before(RenderSet::Cleanup),
+ );
let mut graph = render_app.world.resource_mut::<RenderGraph>();
graph.add_node(FramebufferExtractLabel, FramebufferExtractNode);
graph.add_node_edge(CameraDriverLabel, FramebufferExtractLabel);