Trait rin::ecs::SystemThreadLocal [−][src]
pub trait SystemThreadLocal { pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
); pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>> { ... } pub fn name() -> Option<&'static str> { ... } pub fn runs_on_gpu() -> bool { ... } pub fn before() -> Vec<SystemId, Global>ⓘ { ... } pub fn after() -> Vec<SystemId, Global>ⓘ { ... } pub fn updates() -> Vec<TypeId, Global>ⓘ { ... } pub fn needs() -> Vec<TypeId, Global>ⓘ { ... } pub fn reads() -> Vec<TypeId, Global>ⓘ { ... } pub fn writes() -> Vec<TypeId, Global>ⓘ { ... } pub fn file_line_info(&self) -> &'static str { ... } }
Trait for systems that can only run from the main thread but in parallel with
Send
systems.
Any function that receives an EntitiesThreadLocal
and a ResourcesThreadLocal
parameter in that order can be added as a SystemThreadLocal
to the world.
Required methods
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
Provided methods
pub fn checks(
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>
[src]
&mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>
pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn before() -> Vec<SystemId, Global>ⓘ
[src]
pub fn after() -> Vec<SystemId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn file_line_info(&self) -> &'static str
[src]
Implementations on Foreign Types
impl<D, S> SystemThreadLocal for (S, D) where
D: 'static,
S: SystemWithDataThreadLocal<D>,
[src]
impl<D, S> SystemThreadLocal for (S, D) where
D: 'static,
S: SystemWithDataThreadLocal<D>,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
pub fn checks(
e: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>> where
(S, D): Sized,
[src]
e: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>> where
(S, D): Sized,
pub fn name() -> Option<&'static str> where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn runs_on_gpu() -> bool where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn before() -> Vec<SystemId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn after() -> Vec<SystemId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn updates() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn needs() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn reads() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn writes() -> Vec<TypeId, Global>ⓘ where
(S, D): Sized,
[src]
(S, D): Sized,
pub fn file_line_info(&self) -> &'static str
[src]
Implementors
impl SystemThreadLocal for update_all_shadows_command_buffer_data
[src]
impl SystemThreadLocal for update_all_shadows_command_buffer_data
[src]pub fn name() -> Option<&'static str>
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for update_command_buffer_data
[src]
impl SystemThreadLocal for update_command_buffer_data
[src]pub fn name() -> Option<&'static str>
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for update_shadows_command_buffer_data
[src]
impl SystemThreadLocal for update_shadows_command_buffer_data
[src]pub fn name() -> Option<&'static str>
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for update_static_shadows_command_buffer_data
[src]
impl SystemThreadLocal for update_static_shadows_command_buffer_data
[src]pub fn name() -> Option<&'static str>
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for upload_all_shadows_command_buffer
[src]
impl SystemThreadLocal for upload_all_shadows_command_buffer
[src]impl SystemThreadLocal for upload_command_buffer
[src]
impl SystemThreadLocal for upload_command_buffer
[src]impl SystemThreadLocal for upload_shadows_command_buffer
[src]
impl SystemThreadLocal for upload_shadows_command_buffer
[src]impl SystemThreadLocal for upload_static_shadows_command_buffer
[src]
impl SystemThreadLocal for upload_static_shadows_command_buffer
[src]pub fn name() -> Option<&'static str>
[src]
pub fn checks(
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>
[src]
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>
pub fn runs_on_gpu() -> bool
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for update_lights_data
[src]
impl SystemThreadLocal for update_lights_data
[src]pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
impl SystemThreadLocal for EventsDispatcher
[src]
impl SystemThreadLocal for EventsDispatcher
[src]impl SystemThreadLocal for FpsRenderer
[src]
impl SystemThreadLocal for FpsRenderer
[src]impl<F> SystemThreadLocal for ShadowMapsUpdater<F> where
F: DepthRenderFn,
[src]
impl<F> SystemThreadLocal for ShadowMapsUpdater<F> where
F: DepthRenderFn,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
impl<F> SystemThreadLocal for F where
F: FnMut(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>),
[src]
impl<F> SystemThreadLocal for F where
F: FnMut(EntitiesThreadLocal<'_>, ResourcesThreadLocal<'_>),
[src]pub fn run(&mut self, e: EntitiesThreadLocal<'_>, r: ResourcesThreadLocal<'_>)
[src]
impl<U> SystemThreadLocal for RenderWrapper<U> where
U: RenderSystem,
[src]
impl<U> SystemThreadLocal for RenderWrapper<U> where
U: RenderSystem,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
pub fn checks(
e: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>> where
RenderWrapper<U>: Sized,
[src]
e: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>> where
RenderWrapper<U>: Sized,
pub fn name() -> Option<&'static str> where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn before() -> Vec<SystemId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn after() -> Vec<SystemId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn updates() -> Vec<TypeId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn needs() -> Vec<TypeId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn reads() -> Vec<TypeId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn writes() -> Vec<TypeId, Global>ⓘ where
RenderWrapper<U>: Sized,
[src]
RenderWrapper<U>: Sized,
pub fn runs_on_gpu() -> bool
[src]
pub fn file_line_info(&self) -> &'static str
[src]
impl<V> SystemThreadLocal for GpuSkinningSystem<V> where
V: Clone + Sync + Debug + Serialize + Deserialize<'static> + Vertex<Position = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Normal<Normal = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Send + DefaultWeight + VertexFormat + 'static,
[src]
impl<V> SystemThreadLocal for GpuSkinningSystem<V> where
V: Clone + Sync + Debug + Serialize + Deserialize<'static> + Vertex<Position = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Normal<Normal = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Send + DefaultWeight + VertexFormat + 'static,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
pub fn name() -> Option<&'static str>
[src]
pub fn runs_on_gpu() -> bool
[src]
pub fn after() -> Vec<SystemId, Global>ⓘ
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn reads() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
impl<V> SystemThreadLocal for SkinningSystem<V> where
V: Clone + Sync + Debug + Serialize + Deserialize<'static> + Vertex<Position = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Normal<Normal = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Send + DefaultWeight + 'static,
[src]
impl<V> SystemThreadLocal for SkinningSystem<V> where
V: Clone + Sync + Debug + Serialize + Deserialize<'static> + Vertex<Position = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Normal<Normal = Matrix<f32, U4, U1, <DefaultAllocator as Allocator<f32, U4, U1>>::Buffer>> + Send + DefaultWeight + 'static,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
_resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
_resources: ResourcesThreadLocal<'_>
)
pub fn name() -> Option<&'static str>
[src]
pub fn after() -> Vec<SystemId, Global>ⓘ
[src]
pub fn needs() -> Vec<TypeId, Global>ⓘ
[src]
pub fn updates() -> Vec<TypeId, Global>ⓘ
[src]
pub fn writes() -> Vec<TypeId, Global>ⓘ
[src]
impl<V, B> SystemThreadLocal for AnimatedGeometryGpuUpdater<V, B> where
B: 'static + BufferExt<u8> + Clone + Cast<u32> + Cast<V>,
V: 'static + Debug + Clone + Send + VertexFormat,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
<B as Cast<V>>::CastTo: 'static,
<B as Cast<V>>::CastTo: BufferRangeMut<V>,
<B as Cast<V>>::CastTo: Clone,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
Allocator<V, B>: AllocatorFlags,
[src]
impl<V, B> SystemThreadLocal for AnimatedGeometryGpuUpdater<V, B> where
B: 'static + BufferExt<u8> + Clone + Cast<u32> + Cast<V>,
V: 'static + Debug + Clone + Send + VertexFormat,
<B as Cast<u32>>::CastTo: 'static,
<B as Cast<u32>>::CastTo: BufferRangeMut<u32>,
<B as Cast<u32>>::CastTo: Clone,
<B as Cast<V>>::CastTo: 'static,
<B as Cast<V>>::CastTo: BufferRangeMut<V>,
<B as Cast<V>>::CastTo: Clone,
Allocator<B>: InternalCreation<B>,
Allocator<B>: Creation<B>,
Allocator<B>: Updater,
Allocator<V, B>: AllocatorFlags,
[src]pub fn run(
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
[src]
&mut self,
entities: EntitiesThreadLocal<'_>,
resources: ResourcesThreadLocal<'_>
)
pub fn checks(
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>
[src]
world: &mut StorageRegistry
) -> Option<SystemConditionElse<Box<dyn SystemThreadLocal + 'static, Global>>>