2020-03-24 21:05:32 +01:00
|
|
|
#include "VulkanGraphicsResources.h"
|
|
|
|
|
#include "VulkanInitializer.h"
|
|
|
|
|
#include "VulkanGraphics.h"
|
|
|
|
|
#include "VulkanGraphicsEnums.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
using namespace Seele::Vulkan;
|
|
|
|
|
|
2020-04-01 02:17:49 +02:00
|
|
|
Semaphore::Semaphore(PGraphics graphics)
|
2020-03-24 21:05:32 +01:00
|
|
|
: graphics(graphics)
|
|
|
|
|
{
|
|
|
|
|
VkSemaphoreCreateInfo info =
|
|
|
|
|
init::SemaphoreCreateInfo();
|
|
|
|
|
VK_CHECK(vkCreateSemaphore(graphics->getDevice(), &info, nullptr, &handle));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Semaphore::~Semaphore()
|
|
|
|
|
{
|
2020-04-01 02:17:49 +02:00
|
|
|
vkDestroySemaphore(graphics->getDevice(), handle, nullptr);
|
2020-03-24 21:05:32 +01:00
|
|
|
}
|