summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/wrapper.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-01 02:30:19 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-01 02:32:08 +0200
commitf22f6b72c3ebef386abdce2efbc829a8113e8b9b (patch)
tree5063fa4f3fa135b6c320ac5ba57c9bac9b4c959f /src/video_core/renderer_vulkan/wrapper.cpp
parentrenderer_vulkan/wrapper: Add command buffer handle (diff)
downloadyuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar.gz
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar.bz2
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar.lz
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar.xz
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.tar.zst
yuzu-f22f6b72c3ebef386abdce2efbc829a8113e8b9b.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/wrapper.cpp')
-rw-r--r--src/video_core/renderer_vulkan/wrapper.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.cpp b/src/video_core/renderer_vulkan/wrapper.cpp
index 242cfff6e..9b94dfff1 100644
--- a/src/video_core/renderer_vulkan/wrapper.cpp
+++ b/src/video_core/renderer_vulkan/wrapper.cpp
@@ -733,4 +733,18 @@ VkPhysicalDeviceMemoryProperties PhysicalDevice::GetMemoryProperties() const noe
return properties;
}
+std::optional<std::vector<VkExtensionProperties>> EnumerateInstanceExtensionProperties(
+ const InstanceDispatch& dld) {
+ u32 num;
+ if (dld.vkEnumerateInstanceExtensionProperties(nullptr, &num, nullptr) != VK_SUCCESS) {
+ return std::nullopt;
+ }
+ std::vector<VkExtensionProperties> properties(num);
+ if (dld.vkEnumerateInstanceExtensionProperties(nullptr, &num, properties.data()) !=
+ VK_SUCCESS) {
+ return std::nullopt;
+ }
+ return properties;
+}
+
} // namespace Vulkan::vk