| 1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
| 2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
| 3 | #pragma once |
| 4 | |
| 5 | #include "BsGLPrerequisites.h" |
| 6 | #include "RenderAPI/BsEventQuery.h" |
| 7 | |
| 8 | namespace bs { namespace ct |
| 9 | { |
| 10 | /** @addtogroup GL |
| 11 | * @{ |
| 12 | */ |
| 13 | |
| 14 | /** @copydoc EventQuery */ |
| 15 | class GLEventQuery : public EventQuery |
| 16 | { |
| 17 | public: |
| 18 | GLEventQuery(UINT32 deviceIdx); |
| 19 | ~GLEventQuery(); |
| 20 | |
| 21 | /** @copydoc EventQuery::begin */ |
| 22 | void begin(const SPtr<CommandBuffer>& cb = nullptr) override; |
| 23 | |
| 24 | /** @copydoc EventQuery::isReady */ |
| 25 | bool isReady() const override; |
| 26 | |
| 27 | private: |
| 28 | GLuint mQueryObj = 0; |
| 29 | }; |
| 30 | |
| 31 | /** @} */ |
| 32 | }} |