FenceImpl.h 687 B

12345678910111213141516171819202122232425262728293031323334
  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/Fence.h>
  7. #include <AnKi/Gr/Vulkan/VulkanObject.h>
  8. #include <AnKi/Gr/Vulkan/SemaphoreFactory.h>
  9. namespace anki {
  10. /// @addtogroup vulkan
  11. /// @{
  12. /// Buffer implementation
  13. class FenceImpl final : public Fence, public VulkanObject<Fence, FenceImpl>
  14. {
  15. public:
  16. MicroSemaphorePtr m_semaphore; ///< Yes, it's a timeline semaphore and not a VkFence.
  17. FenceImpl(GrManager* manager, CString name)
  18. : Fence(manager, name)
  19. {
  20. }
  21. ~FenceImpl()
  22. {
  23. }
  24. };
  25. /// @}
  26. } // end namespace anki