2019-04-18 15:49:13 +08:00
|
|
|
#ifndef HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
|
|
|
|
#define HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
|
|
|
|
|
|
|
|
#include"VK.h"
|
|
|
|
VK_NAMESPACE_BEGIN
|
|
|
|
class Semaphore
|
|
|
|
{
|
2019-04-19 20:04:08 +08:00
|
|
|
VkDevice device;
|
|
|
|
VkSemaphore sem;
|
2019-04-18 15:49:13 +08:00
|
|
|
|
2019-04-19 20:04:08 +08:00
|
|
|
private:
|
|
|
|
|
|
|
|
friend class Device;
|
|
|
|
|
|
|
|
Semaphore(VkDevice d,VkSemaphore s)
|
|
|
|
{
|
|
|
|
device=d;
|
|
|
|
sem=s;
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
~Semaphore();
|
2019-04-19 20:10:59 +08:00
|
|
|
|
|
|
|
operator VkSemaphore(){return sem;}
|
2019-04-18 15:49:13 +08:00
|
|
|
};//class Semaphore
|
|
|
|
VK_NAMESPACE_END
|
|
|
|
#endif//HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
|