VkPipelineQuery.h 673 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Gr/PipelineQuery.h>
  7. #include <AnKi/Gr/Vulkan/VkQueryFactory.h>
  8. namespace anki {
  9. /// @addtogroup vulkan
  10. /// @{
  11. /// Pipeline query.
  12. class PipelineQueryImpl final : public PipelineQuery
  13. {
  14. public:
  15. MicroQuery m_handle = {};
  16. PipelineQueryType m_type = PipelineQueryType::kCount;
  17. PipelineQueryImpl(CString name)
  18. : PipelineQuery(name)
  19. {
  20. }
  21. ~PipelineQueryImpl();
  22. /// Create the query.
  23. Error init(PipelineQueryType type);
  24. };
  25. /// @}
  26. } // end namespace anki