Class TextureManager

java.lang.Object
dev.engine.graphics.common.TextureManager

public class TextureManager extends Object
Manages GPU texture resources: upload, identity-based caching, and material texture binding.
  • Constructor Details

  • Method Details

    • upload

      public Handle<TextureResource> upload(TextureData data)
    • bindMaterialTextures

      public void bindMaterialTextures(MaterialData matData, CompiledShader shader, SamplerManager samplerManager, CommandRecorder draw)
      Binds all texture properties from a material to the correct texture units. Resolves bindings from shader reflection metadata.
    • pollStale

      public void pollStale()
      Polls for garbage-collected TextureData and destroys associated GPU textures.
    • close

      public void close()