pub struct RenderWorld {
pub meshes: Vec<ExtractedMesh>,
pub lights: Vec<ExtractedLight>,
pub views: Vec<ExtractedView>,
}Expand description
All scene data needed to render one frame.
Populated by extract_scene. Consumed by the
render lanes through the shared RenderWorldStore.
Fields§
§meshes: Vec<ExtractedMesh>Meshes to draw this frame.
lights: Vec<ExtractedLight>Active lights affecting the frame.
views: Vec<ExtractedView>Active camera views.
Implementations§
Source§impl RenderWorld
impl RenderWorld
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Clears all extracted data. Called at the start of each frame’s extraction.
Sourcepub fn directional_light_count(&self) -> usize
pub fn directional_light_count(&self) -> usize
Returns the number of directional lights.
Sourcepub fn point_light_count(&self) -> usize
pub fn point_light_count(&self) -> usize
Returns the number of point lights.
Sourcepub fn spot_light_count(&self) -> usize
pub fn spot_light_count(&self) -> usize
Returns the number of spot lights.
Trait Implementations§
Source§impl Clone for RenderWorld
impl Clone for RenderWorld
Source§fn clone(&self) -> RenderWorld
fn clone(&self) -> RenderWorld
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RenderWorld
impl Default for RenderWorld
Source§fn default() -> RenderWorld
fn default() -> RenderWorld
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderWorld
impl !RefUnwindSafe for RenderWorld
impl Send for RenderWorld
impl Sync for RenderWorld
impl Unpin for RenderWorld
impl UnsafeUnpin for RenderWorld
impl !UnwindSafe for RenderWorld
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more