Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
313 B
C++
23 lines
313 B
C++
#pragma once
|
|
|
|
#include <mbgl/gl/types.hpp>
|
|
#include <mbgl/platform/gl_functions.hpp>
|
|
|
|
namespace mln {
|
|
namespace gl {
|
|
|
|
class Fence {
|
|
public:
|
|
Fence();
|
|
~Fence();
|
|
|
|
void insert() noexcept;
|
|
bool isSignaled() const;
|
|
|
|
private:
|
|
platform::GLsync fence{nullptr};
|
|
};
|
|
|
|
} // namespace gl
|
|
} // namespace mln
|