2
0

BsD3D11HLSLProgramFactory.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 "BsD3D11Prerequisites.h"
  5. #include "Managers/BsGpuProgramManager.h"
  6. namespace bs { namespace ct
  7. {
  8. /** @addtogroup D3D11
  9. * @{
  10. */
  11. /** Handles creation of DirectX 11 HLSL GPU programs. */
  12. class D3D11HLSLProgramFactory : public GpuProgramFactory
  13. {
  14. public:
  15. D3D11HLSLProgramFactory();
  16. ~D3D11HLSLProgramFactory();
  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. }}