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