aboutsummaryrefslogtreecommitdiff
path: root/samples/config_helper.h
diff options
context:
space:
mode:
authorMika Väinölä <33728696+mvainola@users.noreply.github.com>2019-10-28 19:40:06 +0200
committerdan sinclair <dsinclair@google.com>2019-10-28 13:40:06 -0400
commit34bb13d2747ec8c3ba1deca3d1c5c5f5f5dffa45 (patch)
tree2107e51975d2518edbe9b9cdb3ea4570d72c76e8 /samples/config_helper.h
parent40fce113d6fec2ee35cf1c3574bcdb8e0129c373 (diff)
downloadamber-34bb13d2747ec8c3ba1deca3d1c5c5f5f5dffa45.tar.gz
Add Vulkan device selection support (#698)
Add the `-D` command line option for selecting a physical Vulkan device to run with. Only choose from enumerated physical devices in ChooseVulkanPhysicalDevice and move feature and extension checks to a new CheckVulkanPhysicalDeviceRequirements function. Issue #619
Diffstat (limited to 'samples/config_helper.h')
-rw-r--r--samples/config_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/config_helper.h b/samples/config_helper.h
index cc351d6..fbed9ef 100644
--- a/samples/config_helper.h
+++ b/samples/config_helper.h
@@ -35,6 +35,7 @@ class ConfigHelperImpl {
virtual amber::Result CreateConfig(
uint32_t engine_major,
uint32_t engine_minor,
+ int32_t selected_device,
const std::vector<std::string>& required_features,
const std::vector<std::string>& required_instance_extensions,
const std::vector<std::string>& required_device_extensions,
@@ -58,6 +59,7 @@ class ConfigHelper {
amber::EngineType engine,
uint32_t engine_major,
uint32_t engine_minor,
+ int32_t selected_device,
const std::vector<std::string>& required_features,
const std::vector<std::string>& required_instance_extensions,
const std::vector<std::string>& required_device_extensions,