PerformanceConfig.gpu constructor

const PerformanceConfig.gpu({
  1. int? numThreads,
})

Creates a GPU-accelerated config: Metal on iOS and macOS, XNNPACK on Android. See PerformanceMode.gpu.

Implementation

const PerformanceConfig.gpu({this.numThreads}) : mode = PerformanceMode.gpu;