aboutsummaryrefslogtreecommitdiffstats
path: root/src/vk-context.cpp
diff options
context:
space:
mode:
authorQuentin LADEVIE <qladevie@wanadev.fr>2022-03-03 17:49:03 +0100
committerQuentin LADEVIE <qladevie@wanadev.fr>2022-03-03 17:49:03 +0100
commitbdd35fc2af40496b4cff9121ea5a3a364259642d (patch)
tree3286b7bad9a6daa3b85e1957c44a70c0e6569f55 /src/vk-context.cpp
parent6d98e9d8b07d5c8aa0358780c38f29ffddfbf45f (diff)
Primitive renderpass api & use handle for low level api resources
Diffstat (limited to 'src/vk-context.cpp')
-rw-r--r--src/vk-context.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vk-context.cpp b/src/vk-context.cpp
index b539194..53f3e59 100644
--- a/src/vk-context.cpp
+++ b/src/vk-context.cpp
@@ -3,7 +3,6 @@
#include "vk-context.hpp"
#include "vulkan-loader.hpp"
-#include "vulkan/vulkan_core.h"
#define VMA_IMPLEMENTATION
#include "thirdparty/vk_mem_alloc.h"
@@ -129,6 +128,7 @@ void vkcontext::create_device() {
physical_device_12_features.descriptorBindingPartiallyBound = VK_TRUE;
physical_device_12_features.descriptorBindingPartiallyBound = VK_TRUE;
physical_device_12_features.descriptorBindingUpdateUnusedWhilePending = VK_TRUE;
+ physical_device_12_features.imagelessFramebuffer = VK_TRUE;
VkPhysicalDeviceFeatures2 device_features = {};
device_features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2;
@@ -249,7 +249,7 @@ void vkcontext::check_available_instance_extensions(std::vector<const char*>& av
}
}
- assert(available_needed_extensions_count == needed_extensions.size());
+ // assert(available_needed_extensions_count == needed_extensions.size());
}
bool vkcontext::support_required_features(VkPhysicalDevice physical_device) {
@@ -272,7 +272,8 @@ bool vkcontext::support_required_features(VkPhysicalDevice physical_device) {
vulkan_12_features.shaderSampledImageArrayNonUniformIndexing == VK_TRUE &&
vulkan_12_features.descriptorBindingPartiallyBound == VK_TRUE &&
vulkan_12_features.descriptorBindingPartiallyBound == VK_TRUE &&
- vulkan_12_features.descriptorBindingUpdateUnusedWhilePending == VK_TRUE) {
+ vulkan_12_features.descriptorBindingUpdateUnusedWhilePending == VK_TRUE &&
+ vulkan_12_features.imagelessFramebuffer == VK_TRUE) {
std::cerr << "Using physical device " << physical_device_properties.deviceName << std::endl;
return true;
} else {