BsSLImporter.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsSLPrerequisites.h"
  5. #include "BsSpecificImporter.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Importer using for importing a shader written using the BSL syntax.
  10. * Shader files are plain text files ending with ".bsl" extension.
  11. */
  12. class BS_SL_EXPORT SLImporter : public SpecificImporter
  13. {
  14. public:
  15. SLImporter();
  16. virtual ~SLImporter();
  17. /** @copydoc SpecificImporter::isExtensionSupported */
  18. virtual bool isExtensionSupported(const WString& ext) const override;
  19. /** @copydoc SpecificImporter::isMagicNumberSupported */
  20. virtual bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
  21. /** @copydoc SpecificImporter::import */
  22. virtual ResourcePtr import(const Path& filePath, ConstImportOptionsPtr importOptions) override;
  23. };
  24. }