ULRE/inc/hgl/graph/VKFence.h

29 lines
434 B
C
Raw Normal View History

#ifndef HGL_VULKAN_GRAPH_FENCE_INCLUDE
2019-04-19 19:58:01 +08:00
#define HGL_VULKAN_GRAPH_FENCE_INCLUDE
#include<hgl/graph/VK.h>
2019-04-19 19:58:01 +08:00
VK_NAMESPACE_BEGIN
2022-10-14 19:27:29 +08:00
class Fence
2019-04-19 19:58:01 +08:00
{
VkDevice device;
VkFence fence;
private:
2020-10-21 12:39:22 +08:00
friend class GPUDevice;
2019-04-19 19:58:01 +08:00
2022-10-14 19:27:29 +08:00
Fence(VkDevice d,VkFence f)
2019-04-19 19:58:01 +08:00
{
device=d;
fence=f;
}
public:
2022-10-14 19:27:29 +08:00
~Fence();
operator VkFence(){return fence;}
2022-10-14 19:27:29 +08:00
};//class Fence
2019-04-19 19:58:01 +08:00
VK_NAMESPACE_END
#endif//HGL_VULKAN_GRAPH_FENCE_INCLUDE