BsGLSLProgramFactory.h 683 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "BsGLPrerequisites.h"
  3. #include "BsGpuProgramManager.h"
  4. namespace BansheeEngine
  5. {
  6. /** Factory class for GLSL programs. */
  7. class BS_RSGL_EXPORT GLSLProgramFactory : public GpuProgramFactory
  8. {
  9. public:
  10. /// Get the name of the language this factory creates programs for
  11. const String& getLanguage() const;
  12. /// create an instance of GLSLProgram
  13. GpuProgramPtr create(const String& source, const String& entryPoint, GpuProgramType gptype,
  14. GpuProgramProfile profile, const Vector<HGpuProgInclude>* includes, bool requireAdjacency);
  15. GpuProgramPtr create(GpuProgramType type);
  16. protected:
  17. static const String LANGUAGE_NAME;
  18. };
  19. }