aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-01-24 15:42:21 -0500
committerGitHub <noreply@github.com>2019-01-24 15:42:21 -0500
commitd03f04bb4ff2412ed0490fb3594d8530a8e1ad61 (patch)
treee60354ba98fc1c1905372eade5d4f653584ac389 /samples
parentc8091bac42db3a14b61cee2264e3931267724aa1 (diff)
downloadamber-d03f04bb4ff2412ed0490fb3594d8530a8e1ad61.tar.gz
[vulkan] Load vulkan methods through method. (#246)
This CL changes the vulkan backend to load all vulkan methods through the vkGetInstanceProcAddr method instead of accessing directly.
Diffstat (limited to 'samples')
-rw-r--r--samples/config_helper_vulkan.cc1
-rw-r--r--samples/config_helper_vulkan.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/samples/config_helper_vulkan.cc b/samples/config_helper_vulkan.cc
index 4c3f994..f439e98 100644
--- a/samples/config_helper_vulkan.cc
+++ b/samples/config_helper_vulkan.cc
@@ -787,6 +787,7 @@ std::unique_ptr<amber::EngineConfig> ConfigHelperVulkan::CreateConfig(
config->physical_device = vulkan_physical_device_;
config->available_features = available_features_;
config->available_extensions = available_extensions_;
+ config->instance = vulkan_instance_;
config->queue_family_index = vulkan_queue_family_index_;
config->queue = vulkan_queue_;
config->device = vulkan_device_;
diff --git a/samples/config_helper_vulkan.h b/samples/config_helper_vulkan.h
index a6ad9de..fe8aea5 100644
--- a/samples/config_helper_vulkan.h
+++ b/samples/config_helper_vulkan.h
@@ -15,6 +15,8 @@
#ifndef SAMPLES_CONFIG_HELPER_VULKAN_H_
#define SAMPLES_CONFIG_HELPER_VULKAN_H_
+#include <vulkan/vulkan.h>
+
#include <limits>
#include <memory>
#include <string>