diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-14 09:18:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-14 09:18:47 -0400 |
| commit | 5afe1367ba099a577ab0f6dc25e61c687b00802f (patch) | |
| tree | daf253e5f580b19b1a8be931b84c29356458880b /src/video_core/vulkan_common/vulkan_device.h | |
| parent | 24700af3c27bb0d4cc21f3cb120e62a6ac88e25f (diff) | |
| parent | 7d8f7486968486fd4847df5de11861ead91ec5fd (diff) | |
Merge pull request #11263 from liamwhite/my-feature-branch
vulkan_device: disable features associated with unloaded extensions
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
| -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); |
