VkFence.cpp 543 B

12345678910111213141516171819202122
  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. #include <AnKi/Gr/Fence.h>
  6. #include <AnKi/Gr/Vulkan/VkFence.h>
  7. #include <AnKi/Gr/GrManager.h>
  8. namespace anki {
  9. Fence* Fence::newInstance()
  10. {
  11. return anki::newInstance<FenceImpl>(GrMemoryPool::getSingleton(), "N/A");
  12. }
  13. Bool Fence::clientWait(Second seconds)
  14. {
  15. return static_cast<FenceImpl*>(this)->m_semaphore->clientWait(seconds);
  16. }
  17. } // end namespace anki