aboutsummaryrefslogtreecommitdiff
path: root/include/amber/amber_vulkan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/amber/amber_vulkan.h')
-rw-r--r--include/amber/amber_vulkan.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/include/amber/amber_vulkan.h b/include/amber/amber_vulkan.h
index 084a2c9..1f38ab1 100644
--- a/include/amber/amber_vulkan.h
+++ b/include/amber/amber_vulkan.h
@@ -15,14 +15,38 @@
#ifndef AMBER_AMBER_VULKAN_H_
#define AMBER_AMBER_VULKAN_H_
+#include <limits>
+#include <string>
+#include <vector>
+
+#include "amber/amber.h"
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#include "vulkan/vulkan.h"
+#pragma clang diagnostic pop
namespace amber {
/// Configuration for the Vulkan Engine.
struct VulkanEngineConfig : public EngineConfig {
- /// The VkDevice to use for the tests.
- VkDevice device;
+ /// The VkPhysicalDevice to use.
+ VkPhysicalDevice physical_device = VK_NULL_HANDLE;
+
+ /// Physical device features available for |physical_device|.
+ VkPhysicalDeviceFeatures available_features = {};
+
+ /// Physical device extensions available for |physical_device|.
+ std::vector<std::string> available_extensions;
+
+ /// The given queue family index to use.
+ uint32_t queue_family_index = std::numeric_limits<uint32_t>::max();
+
+ /// The VkDevice to use.
+ VkDevice device = VK_NULL_HANDLE;
+
+ /// The VkQueue to use.
+ VkQueue queue = VK_NULL_HANDLE;
};
} // namespace amber