ULRE/inc/hgl/graph/vulkan/VKSemaphore.h
2019-06-15 23:52:10 +08:00

31 lines
524 B
C++

#ifndef HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
#define HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
#include<hgl/graph/vulkan/VK.h>
VK_NAMESPACE_BEGIN
class Semaphore
{
VkDevice device;
VkSemaphore sem;
private:
friend class Device;
Semaphore(VkDevice d,VkSemaphore s)
{
device=d;
sem=s;
}
public:
~Semaphore();
operator VkSemaphore(){return sem;}
operator const VkSemaphore *()const{return &sem;}
};//class Semaphore
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE