vulkan: fix c++11 compatibility

This commit is contained in:
niki
2022-09-18 16:50:12 +02:00
parent 9fde550ab5
commit 40ff636d6c
4 changed files with 43 additions and 30 deletions
+3 -4
View File
@@ -33,7 +33,6 @@
#include "libraries/xxHash/xxhash.h"
// c++
#include <optional>
#include <iostream>
#include <memory>
#include <functional>
@@ -220,12 +219,12 @@ struct BatchedDrawBuffers
struct QueueFamilyIndices
{
std::optional<uint32_t> graphicsFamily;
std::optional<uint32_t> presentFamily;
Optional<uint32_t> graphicsFamily;
Optional<uint32_t> presentFamily;
bool isComplete() const
{
return graphicsFamily.has_value() && presentFamily.has_value();
return graphicsFamily.hasValue && presentFamily.hasValue;
}
};