コード例 #1
0
        private unsafe static JobHandle ScheduleBoxcastBatch(ref JobsUtility.JobScheduleParameters parameters, void *commands, int commandLen, void *result, int resultLen, int minCommandsPerJob)
        {
            JobHandle result2;

            BoxcastCommand.ScheduleBoxcastBatch_Injected(ref parameters, commands, commandLen, result, resultLen, minCommandsPerJob, out result2);
            return(result2);
        }
コード例 #2
0
        public static JobHandle ScheduleBatch(NativeArray <BoxcastCommand> commands, NativeArray <RaycastHit> results, int minCommandsPerJob, JobHandle dependsOn = default(JobHandle))
        {
            BatchQueryJob <BoxcastCommand, RaycastHit> batchQueryJob = new BatchQueryJob <BoxcastCommand, RaycastHit>(commands, results);

            JobsUtility.JobScheduleParameters jobScheduleParameters = new JobsUtility.JobScheduleParameters(UnsafeUtility.AddressOf <BatchQueryJob <BoxcastCommand, RaycastHit> >(ref batchQueryJob), BatchQueryJobStruct <BatchQueryJob <BoxcastCommand, RaycastHit> > .Initialize(), dependsOn, ScheduleMode.Batched);
            return(BoxcastCommand.ScheduleBoxcastBatch(ref jobScheduleParameters, NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks <BoxcastCommand>(commands), commands.Length, NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks <RaycastHit>(results), results.Length, minCommandsPerJob));
        }
コード例 #3
0
 static public int ctor__Vector3__Vector3__Quaternion__Vector3__Single__Int32_s(IntPtr l)
 {
     try {
         UnityEngine.BoxcastCommand o;
         UnityEngine.Vector3        a1;
         checkType(l, 1, out a1);
         UnityEngine.Vector3 a2;
         checkType(l, 2, out a2);
         UnityEngine.Quaternion a3;
         checkType(l, 3, out a3);
         UnityEngine.Vector3 a4;
         checkType(l, 4, out a4);
         System.Single a5;
         checkType(l, 5, out a5);
         System.Int32 a6;
         checkType(l, 6, out a6);
         o = new UnityEngine.BoxcastCommand(a1, a2, a3, a4, a5, a6);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.BoxcastCommand o;
         o = new UnityEngine.BoxcastCommand();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.BoxcastCommand o;
         UnityEngine.Vector3        a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector3 a2;
         checkType(l, 3, out a2);
         UnityEngine.Quaternion a3;
         checkType(l, 4, out a3);
         UnityEngine.Vector3 a4;
         checkType(l, 5, out a4);
         System.Single a5;
         checkType(l, 6, out a5);
         System.Int32 a6;
         checkType(l, 7, out a6);
         o = new UnityEngine.BoxcastCommand(a1, a2, a3, a4, a5, a6);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
コード例 #6
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.BoxcastCommand o;
         if (argc == 7)
         {
             UnityEngine.Vector3 a1;
             checkType(l, 2, out a1);
             UnityEngine.Vector3 a2;
             checkType(l, 3, out a2);
             UnityEngine.Quaternion a3;
             checkType(l, 4, out a3);
             UnityEngine.Vector3 a4;
             checkType(l, 5, out a4);
             System.Single a5;
             checkType(l, 6, out a5);
             System.Int32 a6;
             checkType(l, 7, out a6);
             o = new UnityEngine.BoxcastCommand(a1, a2, a3, a4, a5, a6);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 2)
         {
             o = new UnityEngine.BoxcastCommand();
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }