BsVulkanGLSLProgramFactory.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 "BsVulkanPrerequisites.h"
  5. #include "Managers/BsGpuProgramManager.h"
  6. namespace bs { namespace ct
  7. {
  8. /** @addtogroup Vulkan
  9. * @{
  10. */
  11. /** Handles creation of GLSL GPU programs. */
  12. class VulkanGLSLProgramFactory : public GpuProgramFactory
  13. {
  14. public:
  15. VulkanGLSLProgramFactory();
  16. ~VulkanGLSLProgramFactory();
  17. /** @copydoc GpuProgramFactory::getLanguage */
  18. const String& getLanguage() const override;
  19. /** @copydoc GpuProgramFactory::create(const GPU_PROGRAM_DESC&, GpuDeviceFlags) */
  20. SPtr<GpuProgram> create(const GPU_PROGRAM_DESC& desc, GpuDeviceFlags deviceMask = GDF_DEFAULT) override;
  21. /** @copydoc GpuProgramFactory::create(GpuProgramType, GpuDeviceFlags) */
  22. SPtr<GpuProgram> create(GpuProgramType type, GpuDeviceFlags deviceMask = GDF_DEFAULT) override;
  23. protected:
  24. static const String LANGUAGE_NAME;
  25. };
  26. /** @} */
  27. }}