Silence some warnings
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
|
||||
namespace OpenVulkano::Vulkan
|
||||
{
|
||||
struct VulkanNode : IRecordable, ICloseable
|
||||
class VulkanNode : public IRecordable, public ICloseable
|
||||
{
|
||||
public:
|
||||
Scene::Node* node = nullptr;
|
||||
UniformBuffer* buffer = nullptr;
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Image.hpp"
|
||||
#include "FrameBuffer.hpp"
|
||||
#include "Base/UI/IWindow.hpp"
|
||||
#include "Base/Logger.hpp"
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
namespace OpenVulkano
|
||||
@@ -90,15 +91,19 @@ namespace OpenVulkano
|
||||
|
||||
void Present(vk::Queue& queue ,std::vector<vk::Semaphore>& semaphores) const
|
||||
{
|
||||
queue.presentKHR(vk::PresentInfoKHR(semaphores.size(), semaphores.data(),
|
||||
const vk::Result result = queue.presentKHR(vk::PresentInfoKHR(semaphores.size(), semaphores.data(),
|
||||
1, &swapChain, ¤tFrameBufferId));
|
||||
if (result != vk::Result::eSuccess) [[unlikely]]
|
||||
{
|
||||
Logger::RENDER->error("Failed to preset swap chain image: {}", to_string(result));
|
||||
}
|
||||
}
|
||||
|
||||
[[nodiscard]] bool UseVsync() const { return useVsync; }
|
||||
|
||||
void SetVsync(bool useVsync)
|
||||
void SetVsync(bool vsync)
|
||||
{ //TODO change swap chain
|
||||
this->useVsync = useVsync;
|
||||
this->useVsync = vsync;
|
||||
}
|
||||
|
||||
[[nodiscard]] uint32_t GetImageCount() const
|
||||
|
||||
Reference in New Issue
Block a user