| 12345678910111213141516171819202122232425262728293031 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsShaderManager.h"
- namespace BansheeEngine
- {
- /** @cond INTERNAL */
- /** @addtogroup Library
- * @{
- */
- /**
- * Shader include handler for the editor. It uses project library to find the includes, and supports special keywords
- * for built-in includes that reside outside of the project library.
- */
- class BS_ED_EXPORT EditorShaderIncludeHandler : public IShaderIncludeHandler
- {
- public:
- /** @copydoc IShaderIncludeHandler::findInclude */
- virtual HShaderInclude findInclude(const String& name) const override;
- /** Converts a shader include name or path to a path of the resource containing include data. */
- static Path toResourcePath(const String& name);
- };
- /** @} */
- /** @endcond */
- }
|