shiny
0.4
a shader and material management library for OGRE
|
Contains possible shader permutations of a single uber-shader (represented by one source file) More...
#include <ShaderSet.hpp>
Public Member Functions | |
ShaderSet (const std::string &type, const std::string &cgProfile, const std::string &hlslProfile, const std::string &sourceFile, const std::string &basePath, const std::string &name, PropertySetGet *globalSettingsPtr) | |
ShaderInstance * | getInstance (PropertySetGet *properties) |
Friends | |
class | ShaderInstance |
Contains possible shader permutations of a single uber-shader (represented by one source file)
ShaderInstance* sh::ShaderSet::getInstance | ( | PropertySetGet * | properties | ) |
Retrieve a shader instance for the given properties.
If a ShaderInstance with the same properties exists already, simply returns this instance.
Otherwise, creates a new ShaderInstance (i.e. compiles a new shader).
Might also return NULL if the shader failed to compile.