copyWith method

GpuInfo copyWith({
  1. String? name,
  2. String? gpuGeneration,
  3. bool? hasUnifiedMemory,
  4. int? recommendedMaxWorkingSetSize,
  5. int? registryID,
  6. MaxThreadsPerThreadgroup? maxThreadsPerThreadgroup,
  7. Map<String, bool>? supportsFamily,
})

Implementation

GpuInfo copyWith({
  String? name,
  String? gpuGeneration,
  bool? hasUnifiedMemory,
  int? recommendedMaxWorkingSetSize,
  int? registryID,
  MaxThreadsPerThreadgroup? maxThreadsPerThreadgroup,
  Map<String, bool>? supportsFamily,
}) {
  return GpuInfo(
    name: name ?? this.name,
    recommendedMaxWorkingSetSize:
        recommendedMaxWorkingSetSize ?? this.recommendedMaxWorkingSetSize,
    registryID: registryID ?? this.registryID,
    maxThreadsPerThreadgroup:
        maxThreadsPerThreadgroup ?? this.maxThreadsPerThreadgroup,
    supportsFamily: supportsFamily ?? this.supportsFamily,
  );
}