demosys.core.shaderfiles package

Submodules

demosys.core.shaderfiles.finders module

class demosys.core.shaderfiles.finders.EffectDirectoriesFinder

Bases: demosys.core.finders.FileSystemFinder

Finds shaders in the registered effects

find(path)

Find a file in the path. When creating a custom finder, this is the method you override.

Parameters:path – The path to find
Returns:The absolute path to the file or None if not found
class demosys.core.shaderfiles.finders.FileSystemFinder

Bases: demosys.core.finders.FileSystemFinder

Find shaders in SHADER_DIRS

demosys.core.shaderfiles.finders.get_finder

Get a finder class from an import path. Raises demosys.core.exceptions.ImproperlyConfigured if the finder is not found. This function uses an lru cache.

Parameters:import_path – string representing an import path
Returns:An instance of the finder
demosys.core.shaderfiles.finders.get_finders()

Module contents