mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-08 22:50:08 +03:00
33 lines
548 B
C++
33 lines
548 B
C++
/*
|
|
by korenkonder
|
|
GitHub/GitLab: korenkonder
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared.hpp"
|
|
|
|
namespace Vulkan {
|
|
class Semaphore {
|
|
protected:
|
|
VkDevice device;
|
|
VkSemaphore data;
|
|
|
|
public:
|
|
inline Semaphore() : device(), data() {
|
|
|
|
}
|
|
|
|
bool Create(VkDevice device, VkSemaphoreCreateFlags flags);
|
|
void Destroy();
|
|
|
|
inline operator VkSemaphore() const {
|
|
return data;
|
|
}
|
|
|
|
inline operator const VkSemaphore* () const {
|
|
return &data;
|
|
}
|
|
};
|
|
}
|