copyWith method

VulkanContextDescriptor copyWith({
  1. NativePointer? instance,
  2. NativePointer? physicalDevice,
  3. NativePointer? device,
  4. NativePointer? graphicsQueue,
  5. int? graphicsQueueFamilyIndex,
  6. NativePointer? getInstanceProcAddr,
  7. NativePointer? getDeviceProcAddr,
})

A copy of this value with the given members replaced.

Implementation

VulkanContextDescriptor copyWith({
  NativePointer? instance,
  NativePointer? physicalDevice,
  NativePointer? device,
  NativePointer? graphicsQueue,
  int? graphicsQueueFamilyIndex,
  NativePointer? getInstanceProcAddr,
  NativePointer? getDeviceProcAddr,
}) => VulkanContextDescriptor(
  instance: instance ?? this.instance,
  physicalDevice: physicalDevice ?? this.physicalDevice,
  device: device ?? this.device,
  graphicsQueue: graphicsQueue ?? this.graphicsQueue,
  graphicsQueueFamilyIndex:
      graphicsQueueFamilyIndex ?? this.graphicsQueueFamilyIndex,
  getInstanceProcAddr: getInstanceProcAddr ?? this.getInstanceProcAddr,
  getDeviceProcAddr: getDeviceProcAddr ?? this.getDeviceProcAddr,
);