FenceImpl.h 687 B

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