mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-23 19:45:38 +00:00
renderer_vulkan/wrapper: Add vkEnumerateInstanceExtensionProperties wrapper
This commit is contained in:
parent
27dd542c60
commit
f22f6b72c3
|
@ -733,4 +733,18 @@ VkPhysicalDeviceMemoryProperties PhysicalDevice::GetMemoryProperties() const noe
|
||||||
return properties;
|
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
|
} // namespace Vulkan::vk
|
||||||
|
|
|
@ -981,4 +981,7 @@ private:
|
||||||
const DeviceDispatch* dld;
|
const DeviceDispatch* dld;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::optional<std::vector<VkExtensionProperties>> EnumerateInstanceExtensionProperties(
|
||||||
|
const InstanceDispatch& dld);
|
||||||
|
|
||||||
} // namespace Vulkan::vk
|
} // namespace Vulkan::vk
|
||||||
|
|
Loading…
Reference in a new issue