decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

Devise a way to guarantee an `IEnumerable<T>` produces an `unmanaged` `IEnumerator` #295

Open mbaker3 opened 9 months ago

mbaker3 commented 9 months ago

Currently we haven't figured out a way to generically accept IEnumerable<T> instances while retaining burst compatibility.

Devise a way to do this.

Idea

Can we create a BurstableEnumerable that wraps IEnumerables and enforces the unmanaged constraint on the IEnumerator?