sandbox
Loading...
Searching...
No Matches
fence.hpp
1#ifndef LIBSBX_GRAPHICS_RENDER_PASS_FENCE_HPP_
2#define LIBSBX_GRAPHICS_RENDER_PASS_FENCE_HPP_
3
4#include <limits>
5
6#include <vulkan/vulkan.hpp>
7
8namespace sbx::graphics {
9
10class fence final {
11
12public:
13
14 fence(bool is_signaled = true);
15
16 ~fence();
17
18 auto handle() const noexcept -> const VkFence&;
19
20 operator const VkFence&() const noexcept;
21
22 auto wait(std::uint64_t timeout = std::numeric_limits<std::uint64_t>::max()) const noexcept -> void;
23
24 auto reset() const noexcept -> void;
25
26private:
27
28 VkFence _handle;
29
30}; // class fence final
31
32} // sbx::graphics
33
34#endif // LIBSBX_GRAPHICS_RENDER_PASS_FENCE_HPP_
Definition: fence.hpp:10