-
Notifications
You must be signed in to change notification settings - Fork 133
Mount Manager
The mount manager manages the pipeline filesystem, and takes care of locating the shaders and allocating the temporary directories.
With the newest version of the pipeline, the mount manager automatically detects the base path. However, in some rare cases, you want to set a different base path. In this case, you can do this with:
self.render_pipeline.mount_mgr.base_path = "root_directory/"
You can pass a relative or an absolute path. root_directory
should point to the directory where Shader
and Data
are contained.
By default, the temporary directory is a virtual directory which does not exist on your disk, being mounted by the VirtualFileSystem. In that directory the shader cache and other temporary pipeline files will be stored. However, if you want to inspect the auto-generated files, you can set the write directory with
self.render_pipeline.mount_mgr.write_path = "write_directory/"
Notice that the mount manager will try to cleanup the folder after the pipeline was closed, so the tempfiles only exist while the pipeline is running. If you want to prevent this, use:
self.render_pipeline.mount_mgr.do_cleanup = False
After eventually setting the base- and the temporary path, you have to call:
self.render_pipeline.mount_mgr.mount()
in order to actually mount the specified directories. After that you can start to load your config files and create the pipeline.
The pipeline will automatically call mount() for you if you don't do this. However, you can only access the extended path as soon as you call mount()
.
Rendering Pipeline by tobspr (c) 2014 - 2016
For developers: