-
Notifications
You must be signed in to change notification settings - Fork 136
Mount Manager
The mount manager manages the pipeline filesystem, and takes care of locating the shaders and allocating the temporary directories.
You can set a base path, in case the pipeline was not installed in your root directory. You can do this with
self.render_pipeline.get_mount_manager().set_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.get_mount_manager().set_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
After setting the base and eventuall the temporary path, you have to call:
self.render_pipeline.get_mount_manager().mount()in order to actually mount the specified directories. After that you can start to load your config files and create the pipeline.
Rendering Pipeline by tobspr (c) 2014 - 2016
For developers: