BsGLSLProgramFactory.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsGLPrerequisites.h"
  5. #include "BsGpuProgramManager.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Factory class that deals with creating GLSL GPU programs.
  10. */
  11. class BS_RSGL_EXPORT GLSLProgramFactory : public GpuProgramFactory
  12. {
  13. public:
  14. /**
  15. * @copydoc GpuProgramFactory::getLanguage
  16. */
  17. const String& getLanguage() const override;
  18. /**
  19. * @copydoc GpuProgramFactory::getLanguage(const String&, const String&, GpuProgramType,
  20. * GpuProgramProfile, bool)
  21. */
  22. SPtr<GpuProgramCore> create(const String& source, const String& entryPoint, GpuProgramType gptype,
  23. GpuProgramProfile profile, bool requireAdjacency) override;
  24. /**
  25. * @copydoc GpuProgramFactory::create(GpuProgramType)
  26. */
  27. SPtr<GpuProgramCore> create(GpuProgramType type) override;
  28. protected:
  29. static const String LANGUAGE_NAME;
  30. };
  31. }