BsD3D9HLSLProgramFactory.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsD3D9Prerequisites.h"
  5. #include "BsGpuProgramManager.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup D3D9
  9. * @{
  10. */
  11. /** Handles creation of HLSL GPU programs. */
  12. class BS_D3D9_EXPORT D3D9HLSLProgramFactory : public GpuProgramFactory
  13. {
  14. public:
  15. D3D9HLSLProgramFactory();
  16. ~D3D9HLSLProgramFactory();
  17. /** @copydoc GpuProgramFactory::getLanguage */
  18. const String& getLanguage() const override;
  19. /**
  20. * @copydoc GpuProgramFactory::getLanguage(const String&, const String&, GpuProgramType,
  21. * GpuProgramProfile, bool)
  22. */
  23. SPtr<GpuProgramCore> create(const String& source, const String& entryPoint, GpuProgramType gptype,
  24. GpuProgramProfile profile, bool requiresAdjacency) override;
  25. /** @copydoc GpuProgramFactory::create(GpuProgramType) */
  26. SPtr<GpuProgramCore> create(GpuProgramType type) override;
  27. protected:
  28. static String LANGUAGE_NAME;
  29. };
  30. /** @} */
  31. }