ULRE/inc/hgl/graph/VKFence.h

29 lines
446 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
2020-10-21 12:09:15 +08:00
class GPUFence
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
2020-10-21 12:09:15 +08:00
GPUFence(VkDevice d,VkFence f)
2019-04-19 19:58:01 +08:00
{
device=d;
fence=f;
}
public:
2020-10-21 12:09:15 +08:00
~GPUFence();
operator VkFence(){return fence;}
2020-10-21 12:09:15 +08:00
};//class GPUFence
2019-04-19 19:58:01 +08:00
VK_NAMESPACE_END
#endif//HGL_VULKAN_GRAPH_FENCE_INCLUDE