Thread-local components that can only be used in thread local systems
- Lenguaje dominante
- Rust
- Estrellas
- 1.7k
- Forks
- 140
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Currently it is not possible to create a component that does not implement `Send` and `Sync`. When working with renderers in for example OpenGL this starts to become a problem where OpenGL objects such as vbo's, vao's, etc. which cannot be shared across threads can't be safely made into components.
A new, secondary, component trait that does not require `Send` and `Sync` to be implemented and can only be used in thread-local systems would allow for these OpenGL object to be expressed as components which will (in my opinion) improve the way a renderer can be designed using the Legion ECS.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.