rename a class, use GPUSemaphore instead Semaphore
This commit is contained in:
parent
7998fa6e41
commit
282344f61e
@ -46,7 +46,7 @@ class IndexBuffer;
|
|||||||
class CommandBuffer;
|
class CommandBuffer;
|
||||||
class RenderPass;
|
class RenderPass;
|
||||||
class Fence;
|
class Fence;
|
||||||
class Semaphore;
|
class GPUSemaphore;
|
||||||
|
|
||||||
class DescriptorSetLayoutCreater;
|
class DescriptorSetLayoutCreater;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include<hgl/graph/vulkan/VK.h>
|
#include<hgl/graph/vulkan/VK.h>
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
class Semaphore
|
class GPUSemaphore
|
||||||
{
|
{
|
||||||
VkDevice device;
|
VkDevice device;
|
||||||
VkSemaphore sem;
|
VkSemaphore sem;
|
||||||
@ -12,7 +12,7 @@ private:
|
|||||||
|
|
||||||
friend class Device;
|
friend class Device;
|
||||||
|
|
||||||
Semaphore(VkDevice d,VkSemaphore s)
|
GPUSemaphore(VkDevice d,VkSemaphore s)
|
||||||
{
|
{
|
||||||
device=d;
|
device=d;
|
||||||
sem=s;
|
sem=s;
|
||||||
@ -20,11 +20,11 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
~Semaphore();
|
~GPUSemaphore();
|
||||||
|
|
||||||
operator VkSemaphore(){return sem;}
|
operator VkSemaphore(){return sem;}
|
||||||
|
|
||||||
operator const VkSemaphore *()const{return &sem;}
|
operator const VkSemaphore *()const{return &sem;}
|
||||||
};//class Semaphore
|
};//class GPUSemaphore
|
||||||
VK_NAMESPACE_END
|
VK_NAMESPACE_END
|
||||||
#endif//HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
|
#endif//HGL_GRAPH_VULKAN_SEMAPHORE_INCLUDE
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include<hgl/graph/vulkan/VKSemaphore.h>
|
#include<hgl/graph/vulkan/VKSemaphore.h>
|
||||||
VK_NAMESPACE_BEGIN
|
VK_NAMESPACE_BEGIN
|
||||||
Semaphore::~Semaphore()
|
GPUSemaphore::~GPUSemaphore()
|
||||||
{
|
{
|
||||||
vkDestroySemaphore(device,sem,nullptr);
|
vkDestroySemaphore(device,sem,nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user