| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
|---|---|
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #include "Material/BsShaderManager.h" |
| 4 | #include "Resources/BsResources.h" |
| 5 | #include "Importer/BsImporter.h" |
| 6 | |
| 7 | namespace bs |
| 8 | { |
| 9 | HShaderInclude DefaultShaderIncludeHandler::findInclude(const String& name) const |
| 10 | { |
| 11 | return Importer::instance().import<ShaderInclude>(name); |
| 12 | } |
| 13 | |
| 14 | HShaderInclude ShaderManager::findInclude(const String& name) const |
| 15 | { |
| 16 | return mIncludeHandler->findInclude(name); |
| 17 | } |
| 18 | |
| 19 | void ShaderManager::addSearchPath(const Path& path) |
| 20 | { |
| 21 | if(mIncludeHandler) |
| 22 | mIncludeHandler->addSearchPath(path); |
| 23 | } |
| 24 | } |