BsShaderIncludeImporter.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsSpecificImporter.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Importer
  9. * @{
  10. */
  11. /**
  12. * Importer using for importing GPU program (shader) include files. Include files are just text files ending with
  13. * ".bslinc" extension.
  14. */
  15. class BS_CORE_EXPORT ShaderIncludeImporter : public SpecificImporter
  16. {
  17. public:
  18. ShaderIncludeImporter();
  19. virtual ~ShaderIncludeImporter();
  20. /** @copydoc SpecificImporter::isExtensionSupported */
  21. bool isExtensionSupported(const WString& ext) const override;
  22. /** @copydoc SpecificImporter::isMagicNumberSupported */
  23. bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
  24. /** @copydoc SpecificImporter::import */
  25. SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override;
  26. };
  27. /** @} */
  28. }