copyWith method

GpuTextureDesc copyWith({
  1. int? width,
  2. int? height,
  3. GpuFormat? format,
})

A copy with some fields changed.

Implementation

GpuTextureDesc copyWith({int? width, int? height, GpuFormat? format}) =>
    GpuTextureDesc(
      width: width ?? this.width,
      height: height ?? this.height,
      format: format ?? this.format,
      storage: storage,
      mipLevels: mipLevels,
      samples: samples,
      cube: cube,
      renderTarget: renderTarget,
      shaderRead: shaderRead,
    );