コード例 #1
0
        public void float4x4_hashwide_burst()
        {
            FunctionPointer <float4x4_hashwide.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <float4x4_hashwide.TestFunction>(float4x4_hashwide.BurstTestFunction);
            var args = new float4x4_hashwide.Arguments();

            args.Init();

            Measure.Method(() =>
            {
                testFunction.Invoke(ref args);
            })
            .Definition(sampleUnit: SampleUnit.Microsecond)
            .WarmupCount(1)
            .MeasurementCount(10)
            .Run();
            args.Dispose();
        }
コード例 #2
0
        public void float4x4_hashwide_mono()
        {
            float4x4_hashwide.TestFunction testFunction = float4x4_hashwide.MonoTestFunction;
            var args = new float4x4_hashwide.Arguments();

            args.Init();

            Measure.Method(() =>
            {
                testFunction.Invoke(ref args);
            })
            .Definition(sampleUnit: SampleUnit.Microsecond)
            .WarmupCount(1)
            .MeasurementCount(10)
            .Run();
            args.Dispose();
        }