Skip to content

Commit

Permalink
docs: adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Feb 16, 2025
1 parent 5ce8a4d commit 977b9d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ pub(crate) struct VelloCanvasSettings {
#[derive(Component, Debug, Clone, Copy)]
pub struct SkipEncoding;

/// Internally used as a prepared render asset.
#[derive(Clone)]
pub(crate) enum VelloRenderItem {
#[cfg(feature = "svg")]
Expand All @@ -185,6 +186,11 @@ pub(crate) enum VelloRenderItem {
},
}

/// Internally used to buffer sorted assets prepared for the next frame.
#[derive(Resource, Default, Deref, DerefMut)]
pub(crate) struct VelloRenderQueue(Vec<VelloRenderItem>);

/// Internally used to track diagnostics.
#[derive(Resource, ExtractResource, Default, Debug, Clone, Reflect)]
pub(crate) struct VelloFrameData {
/// Number of scenes.
Expand All @@ -198,6 +204,3 @@ pub(crate) struct VelloFrameData {
#[cfg(feature = "lottie")]
pub n_lotties: u32,
}

#[derive(Resource, Default, Deref, DerefMut)]
pub(crate) struct VelloRenderQueue(Vec<VelloRenderItem>);

0 comments on commit 977b9d0

Please sign in to comment.