Latios-Framework
Latios-Framework copied to clipboard
Core: Typed UnsafeParallelBlockList
Core: Typed UnsafeParallelBlockList
UnsafeParallelBlockList
is a fast data structure used frequently in the internals of the Latios Framework. It was originally written to be untyped so that InstantiateCommandBuffer
instances could be aggregated into a single container. However, for other use cases there’s an argument for adding type safety.
Task Is Prerequisite For
- NativeParallelBlockList
- Immediate Rendering APIs
Base Requirements
Implement a generic version of UnsafeParallelBlockList
that contains a private non-generic field and forwards most API methods. You will also need to implement a typed Enumerator (both per thread-index and across the entire container). For some methods where type size and alignment were requested, automatically populate those arguments with the generic type using UnsafeUtility
.