BsVulkanTimerQuery.h 908 B

12345678910111213141516171819202122232425262728293031323334353637
  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 "BsTimerQuery.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Vulkan
  9. * @{
  10. */
  11. /** @copydoc TimerQuery */
  12. class VulkanTimerQuery : public TimerQuery
  13. {
  14. public:
  15. VulkanTimerQuery(VulkanDevice& device);
  16. ~VulkanTimerQuery();
  17. /** @copydoc TimerQuery::begin */
  18. void begin(const SPtr<CommandBuffer>& cb = nullptr) override;
  19. /** @copydoc TimerQuery::end */
  20. void end(const SPtr<CommandBuffer>& cb = nullptr) override;
  21. /** @copydoc TimerQuery::isReady */
  22. bool isReady() const override;
  23. /** @copydoc TimerQuery::getTimeMs */
  24. float getTimeMs() override;
  25. private:
  26. };
  27. /** @} */
  28. }