Ejemplo n.º 1
0
        public static BurstFunc <TResult> Compile(Func <TResult> func)
        {
            var functionPointer = BurstCompiler.CompileFunctionPointer(func);

            DelegateCache <Func <TResult> > .SetDelegate(functionPointer.Value, func);

            return(new BurstFunc <TResult>(functionPointer));
        }
Ejemplo n.º 2
0
        public static BurstAction Compile(Action action)
        {
            var functionPointer = BurstCompiler.CompileFunctionPointer(action);

            DelegateCache <Action> .SetDelegate(functionPointer.Value, action);

            return(new BurstAction(functionPointer));
        }