20 lines
435 B
C++
20 lines
435 B
C++
#include "VulkanGraphicsResources.h"
|
|||
|
|
#include "VulkanInitializer.h"
|
||
|
|
#include "VulkanGraphics.h"
|
||
|
|
#include "VulkanGraphicsEnums.h"
|
||
|
|
|
||
|
|
using namespace Seele;
|
||
|
|
using namespace Seele::Vulkan;
|
||
|
|
|
||
|
|
Semaphore::Semaphore(WGraphics graphics)
|
||
|
|
: graphics(graphics)
|
||
|
|
{
|
||
|
|
VkSemaphoreCreateInfo info =
|
||
|
|
init::SemaphoreCreateInfo();
|
||
|
|
VK_CHECK(vkCreateSemaphore(graphics->getDevice(), &info, nullptr, &handle));
|
||
|
|
}
|
||
|
|
|
||
|
|
Semaphore::~Semaphore()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|