2
0

BsD3D9HLSLProgramFactory.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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::create(const String&, const String&, GpuProgramType, GpuProgramProfile, bool)
  21. */
  22. SPtr<GpuProgramCore> create(const String& source, const String& entryPoint, GpuProgramType gptype,
  23. GpuProgramProfile profile, bool requiresAdjacency) override;
  24. /** @copydoc GpuProgramFactory::create(GpuProgramType) */
  25. SPtr<GpuProgramCore> create(GpuProgramType type) override;
  26. protected:
  27. static String LANGUAGE_NAME;
  28. };
  29. /** @} */
  30. }