diff options
| author | MatÃas Locatti <42481638+goldenx86@users.noreply.github.com> | 2022-12-02 18:32:54 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 18:32:54 -0300 |
| commit | c043ba84675794b37c42ac47b2776dc57d63decb (patch) | |
| tree | 479743223a7103a600bf162fffa0203c9f92232d /src/video_core/vulkan_common/vulkan_device.h | |
| parent | 9a5d8b356ac784fcfbdfaeecaea8b7e6f36f6898 (diff) | |
| parent | 2956a33463df8fe97819df2b08d31834eaeed442 (diff) | |
Merge pull request #9303 from liamwhite/new-vulkan-init
Vulkan: update initialization
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index d7cc6c593..c85fbba77 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -211,11 +211,6 @@ public: return khr_uniform_buffer_standard_layout; } - /// Returns true if the device supports VK_KHR_spirv_1_4. - bool IsKhrSpirv1_4Supported() const { - return khr_spirv_1_4; - } - /// Returns true if the device supports VK_KHR_push_descriptor. bool IsKhrPushDescriptorSupported() const { return khr_push_descriptor; @@ -316,6 +311,17 @@ public: return ext_shader_atomic_int64; } + /// Returns the minimum supported version of SPIR-V. + u32 SupportedSpirvVersion() const { + if (instance_version >= VK_API_VERSION_1_3) { + return 0x00010600U; + } + if (khr_spirv_1_4) { + return 0x00010400U; + } + return 0x00010000U; + } + /// Returns true when a known debugging tool is attached. bool HasDebuggingToolAttached() const { return has_renderdoc || has_nsight_graphics; |
