import omni.ext
import omni.hydratexture

class Extension(omni.ext.IExt):
    def __init__(self):
        super().__init__()
        pass

    def on_startup(self):
        self._hydra_texture_factory = omni.hydratexture.acquire_hydra_texture_factory_interface()
        self._hydra_texture_factory.startup()

    def on_shutdown(self):
        self._hydra_texture_factory.shutdown()
        self._hydra_texture_factory = None
