OcclusionQueryImpl.h 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (C) 2009-2021, 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/OcclusionQuery.h>
  7. #include <AnKi/Gr/Vulkan/VulkanObject.h>
  8. #include <AnKi/Gr/Vulkan/QueryFactory.h>
  9. namespace anki
  10. {
  11. /// @addtogroup vulkan
  12. /// @{
  13. /// Occlusion query.
  14. class OcclusionQueryImpl final : public OcclusionQuery, public VulkanObject<OcclusionQuery, OcclusionQueryImpl>
  15. {
  16. public:
  17. MicroQuery m_handle = {};
  18. OcclusionQueryImpl(GrManager* manager, CString name)
  19. : OcclusionQuery(manager, name)
  20. {
  21. }
  22. ~OcclusionQueryImpl();
  23. /// Create the query.
  24. ANKI_USE_RESULT Error init();
  25. /// Get query result.
  26. OcclusionQueryResult getResultInternal() const;
  27. };
  28. /// @}
  29. } // end namespace anki