textureNeedsGenerateMipmaps method

dynamic textureNeedsGenerateMipmaps(
  1. Texture texture,
  2. dynamic supportsMips
)

Implementation

textureNeedsGenerateMipmaps(Texture texture, supportsMips) {
  return texture.generateMipmaps &&
      supportsMips &&
      texture.minFilter != NearestFilter &&
      texture.minFilter != LinearFilter;
}