BsVulkanGpuProgram.h 1006 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 "BsGpuProgram.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Vulkan
  9. * @{
  10. */
  11. /** Abstraction of a Vulkan shader object. */
  12. class
  13. VulkanGpuProgramCore : public GpuProgramCore
  14. {
  15. public:
  16. virtual ~VulkanGpuProgramCore();
  17. /**
  18. * Returns a handle to the Vulkan shader module, on the specified device. If program device mask doesn't
  19. * include the provided device, null is returned.
  20. */
  21. VkShaderModule getHandle(UINT32 deviceIdx) const;
  22. protected:
  23. friend class VulkanGLSLProgramFactory;
  24. VulkanGpuProgramCore(const GPU_PROGRAM_DESC& desc, GpuDeviceFlags deviceMask);
  25. /** @copydoc GpuProgramCore::initialize */
  26. void initialize() override;
  27. private:
  28. };
  29. /** @} */
  30. }