BsSLImporter.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. /** @addtogroup BansheeSL
  9. * @{
  10. */
  11. /**
  12. * Importer using for importing a shader written using the BSL syntax. Shader files are plain text files ending with
  13. * ".bsl" extension.
  14. */
  15. class BS_SL_EXPORT SLImporter : public SpecificImporter
  16. {
  17. public:
  18. SLImporter();
  19. virtual ~SLImporter();
  20. /** @copydoc SpecificImporter::isExtensionSupported */
  21. virtual bool isExtensionSupported(const WString& ext) const override;
  22. /** @copydoc SpecificImporter::isMagicNumberSupported */
  23. virtual bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
  24. /** @copydoc SpecificImporter::import */
  25. virtual SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override;
  26. /** @copydoc SpecificImporter::createImportOptions */
  27. virtual SPtr<ImportOptions> createImportOptions() const override;
  28. };
  29. /** @} */
  30. }