ULRE/inc/hgl/graph/VKSemaphore.h

31 lines
526 B
C
Raw Normal View History

#ifndef HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
#define HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
class Semaphore
{
2019-04-19 20:04:08 +08:00
VkDevice device;
VkSemaphore sem;
2019-04-19 20:04:08 +08:00
private:
friend class VulkanDevice;
2019-04-19 20:04:08 +08:00
Semaphore(VkDevice d,VkSemaphore s)
2019-04-19 20:04:08 +08:00
{
device=d;
sem=s;
}
public:
~Semaphore();
2019-04-19 20:10:59 +08:00
operator VkSemaphore(){return sem;}
2019-06-15 23:52:10 +08:00
operator const VkSemaphore *()const{return &sem;}
};//class Semaphore
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE