aboutsummaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-06-03 22:00:19 -0400
committerLibravatar Silas Bartha <[email protected]>2024-06-03 22:00:19 -0400
commit5560d5d092a4849cfe1ce63d85cef57c07ce8d8b (patch)
tree9c3f9f6c72c437b5ef10d4428dfdfbfd6e12c51c /src/components.rs
parentef6c2954156b2b0cf4abfe583d8faaf546f4e7c4 (diff)
Added docs + renamed
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs
index c1122d0..f9fe912 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -4,6 +4,7 @@ use bevy::{ecs::query::QueryItem, prelude::*, render::extract_component::Extract
use crate::render_assets::FramebufferExtractSource;
+/// Framebuffer extraction destination. Contains the image which the framebuffer is extracted to.
#[derive(Component, Default, Clone)]
pub struct FramebufferExtractDestination(pub Arc<Mutex<Image>>);
@@ -21,8 +22,11 @@ impl ExtractComponent for FramebufferExtractDestination {
}
}
+/// Bundle containing both a source and destination for framebuffer extraction.
#[derive(Bundle)]
pub struct ExtractFramebufferBundle {
+ /// Source
pub source: Handle<FramebufferExtractSource>,
+ /// Destination
pub dest: FramebufferExtractDestination,
}