public void transpose_float4x4_burst() { FunctionPointer <transpose_float4x4.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <transpose_float4x4.TestFunction>(transpose_float4x4.BurstTestFunction); var args = new transpose_float4x4.Arguments(); args.Init(); Measure.Method(() => { testFunction.Invoke(ref args); }) .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }
public void transpose_float4x4_mono() { transpose_float4x4.TestFunction testFunction = transpose_float4x4.MonoTestFunction; var args = new transpose_float4x4.Arguments(); args.Init(); Measure.Method(() => { testFunction.Invoke(ref args); }) .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }