aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-02-20 19:33:42 -0500
committerGitHub <noreply@github.com>2019-02-20 19:33:42 -0500
commit72837666c311762c16a9746657f2a72676979b11 (patch)
tree13757fd7a30435377f7e433dd6bc36f04dd86d0d /include
parent198746675fc8271313c55e48ba0b82e4f6631d1a (diff)
downloadamber-72837666c311762c16a9746657f2a72676979b11.tar.gz
Allow querying vkGetPhysicalProperties2 (#308)
This CL adds the code to query for physical properties2 if the VK_KHR_get_physical_device_properties2 extension is required.
Diffstat (limited to 'include')
-rw-r--r--include/amber/amber_vulkan.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/amber/amber_vulkan.h b/include/amber/amber_vulkan.h
index 5ec831c..2a8d559 100644
--- a/include/amber/amber_vulkan.h
+++ b/include/amber/amber_vulkan.h
@@ -36,9 +36,17 @@ struct VulkanEngineConfig : public EngineConfig {
/// The VkPhysicalDevice to use.
VkPhysicalDevice physical_device;
- /// Physical device features available for |physical_device|.
+ /// Physical device features available for |physical_device|. The
+ /// |available_features| will be ignored if
+ /// VK_KHR_get_physical_device_features2 is enabled, |available_features2|
+ /// will be used in that case.
VkPhysicalDeviceFeatures available_features;
+ /// Physical device features for |physical_device|.The |available_features2|
+ /// will only be used if VK_KHR_get_physical_device_features2 is enabled. If
+ /// the extension is not enabled, |available_features| will be used.
+ VkPhysicalDeviceFeatures2KHR available_features2;
+
/// Instance extensions available.
std::vector<std::string> available_instance_extensions;