Skip to content

Threading

Brine2D

Brine2D.Threading Namespace

Classes
MainThreadDispatcher Simple cross-platform dispatcher for marshaling GPU operations to the main thread. Uses only standard .NET primitives (ConcurrentQueue, Thread) for maximum compatibility.
Interfaces
IMainThreadDispatcher Minimal cross-platform interface for marshaling work to the main game thread. Required for GPU operations which must run on the main thread due to platform constraints.