Skip to content

Instantly share code, notes, and snippets.

View PatrickHenschel's full-sized avatar

Patrick PatrickHenschel

View GitHub Profile
@PatrickHenschel
PatrickHenschel / BurstHelper.cs
Created January 25, 2024 23:27 — forked from sebas77/BurstHelper.cs
Code to compile c# actions with Burst and use them outside the job system. Attention: it's a hack, use just for experiments only
#if UNITY_BURST_FEATURE_FUNCPTR
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.InteropServices;
using Unity.Burst;
namespace BurstHelper