2
0

FenceImpl.h 573 B

1234567891011121314151617181920212223242526272829303132
  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/gl/GlObject.h>
  8. namespace anki {
  9. /// @addtogroup opengl
  10. /// @{
  11. /// Fence implementation.
  12. class FenceImpl final : public Fence, public GlObject
  13. {
  14. public:
  15. GLsync m_fence = nullptr;
  16. Atomic<Bool> m_signaled = {false};
  17. FenceImpl(GrManager* gr, CString name)
  18. : Fence(gr, name)
  19. {
  20. }
  21. ~FenceImpl();
  22. };
  23. /// @}
  24. } // end namespace anki