Latios-Framework icon indicating copy to clipboard operation
Latios-Framework copied to clipboard

Core: Typed UnsafeParallelBlockList

Open Dreaming381 opened this issue 6 months ago • 0 comments

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.

Dreaming381 avatar Aug 12 '24 01:08 Dreaming381