GpuTextureDesc constructor

const GpuTextureDesc({
  1. required int width,
  2. required int height,
  3. GpuFormat format = GpuFormat.rgba8,
  4. GpuStorage storage = GpuStorage.device,
  5. int mipLevels = 1,
  6. int samples = 1,
  7. bool cube = false,
  8. bool renderTarget = false,
  9. bool shaderRead = true,
})

Describes a texture.

Implementation

const GpuTextureDesc({
  required this.width,
  required this.height,
  this.format = GpuFormat.rgba8,
  this.storage = GpuStorage.device,
  this.mipLevels = 1,
  this.samples = 1,
  this.cube = false,
  this.renderTarget = false,
  this.shaderRead = true,
});