//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// #pragma once #include "BsSLPrerequisites.h" #include "BsSpecificImporter.h" namespace BansheeEngine { /** @addtogroup BansheeSL * @{ */ /** * Importer using for importing a shader written using the BSL syntax. Shader files are plain text files ending with * ".bsl" extension. */ class BS_SL_EXPORT SLImporter : public SpecificImporter { public: SLImporter(); virtual ~SLImporter(); /** @copydoc SpecificImporter::isExtensionSupported */ virtual bool isExtensionSupported(const WString& ext) const override; /** @copydoc SpecificImporter::isMagicNumberSupported */ virtual bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override; /** @copydoc SpecificImporter::import */ virtual SPtr import(const Path& filePath, SPtr importOptions) override; /** @copydoc SpecificImporter::createImportOptions */ virtual SPtr createImportOptions() const override; }; /** @} */ }