createTexture abstract method

Texture createTexture(
  1. StorageMode storageMode,
  2. int width,
  3. int height, {
  4. PixelFormat format = PixelFormat.r8g8b8a8UNormInt,
  5. int sampleCount = 1,
  6. TextureType? textureType,
  7. bool enableRenderTargetUsage = true,
  8. bool enableShaderReadUsage = true,
  9. int mipLevelCount = 1,
})

Implementation

Texture createTexture(
  StorageMode storageMode,
  int width,
  int height, {
  PixelFormat format = PixelFormat.r8g8b8a8UNormInt,
  int sampleCount = 1,
  TextureType? textureType,
  bool enableRenderTargetUsage = true,
  bool enableShaderReadUsage = true,
  int mipLevelCount = 1,
});