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

            args.Init();

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

            args.Init();

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