rafx_framework/render_features/jobs/
job_context.rs1use crate::render_features::render_features_prelude::*;
2
3pub struct DefaultJobContext {}
9
10impl DefaultJobContext {
11 pub fn new() -> Self {
13 Self {}
14 }
15}
16
17pub struct RenderObjectsJobContext<'job, RenderObjectStaticDataT> {
19 pub render_objects: RwLockReadGuard<'job, RenderObjectsMap<RenderObjectStaticDataT>>,
20}
21
22impl<'job, RenderObjectStaticDataT> RenderObjectsJobContext<'job, RenderObjectStaticDataT> {
23 pub fn new(
24 render_objects: RwLockReadGuard<'job, RenderObjectsMap<RenderObjectStaticDataT>>
25 ) -> Self {
26 RenderObjectsJobContext { render_objects }
27 }
28}