diff options
author | Liam <byteslice@airmail.cc> | 2023-08-11 20:21:36 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-08-11 20:54:12 +0200 |
commit | 7d8f7486968486fd4847df5de11861ead91ec5fd (patch) | |
tree | eeb687a1c288505c90fe7e26a4ef658c586cdc03 /src/video_core/vulkan_common/vulkan_device.h | |
parent | Merge pull request #11093 from liamwhite/result-ergonomics (diff) | |
download | yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar.gz yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar.bz2 yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar.lz yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar.xz yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.tar.zst yuzu-7d8f7486968486fd4847df5de11861ead91ec5fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index d8dd41e51..488fdd313 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -639,8 +639,17 @@ private: // Remove extensions which have incomplete feature support. void RemoveUnsuitableExtensions(); + + void RemoveExtension(bool& extension, const std::string& extension_name); void RemoveExtensionIfUnsuitable(bool is_suitable, const std::string& extension_name); + template <typename Feature> + void RemoveExtensionFeature(bool& extension, Feature& feature, + const std::string& extension_name); + template <typename Feature> + void RemoveExtensionFeatureIfUnsuitable(bool is_suitable, Feature& feature, + const std::string& extension_name); + /// Sets up queue families. void SetupFamilies(VkSurfaceKHR surface); |