createTexture abstract method

Future<Texture> createTexture(
  1. int width,
  2. int height, {
  3. int depth = 1,
  4. int levels = 1,
  5. Set<TextureUsage> flags = const {TextureUsage.TEXTURE_USAGE_SAMPLEABLE},
  6. TextureSamplerType textureSamplerType = TextureSamplerType.SAMPLER_2D,
  7. TextureFormat textureFormat = TextureFormat.RGBA32F,
  8. int? importedTextureHandle,
})

Implementation

Future<Texture> createTexture(int width, int height,
    {int depth = 1,
    int levels = 1,
    Set<TextureUsage> flags = const {TextureUsage.TEXTURE_USAGE_SAMPLEABLE},
    TextureSamplerType textureSamplerType = TextureSamplerType.SAMPLER_2D,
    TextureFormat textureFormat = TextureFormat.RGBA32F,
    int? importedTextureHandle});