Class TextureManager
java.lang.Object
dev.engine.graphics.common.TextureManager
Manages GPU texture resources: upload, identity-based caching, and material texture binding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindMaterialTextures(MaterialData matData, CompiledShader shader, SamplerManager samplerManager, CommandRecorder draw) Binds all texture properties from a material to the correct texture units.voidclose()voidPolls for garbage-collected TextureData and destroys associated GPU textures.upload(TextureData data)
-
Constructor Details
-
TextureManager
-
-
Method Details
-
upload
-
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()
-