diff options
| author | MatÃas Locatti <42481638+goldenx86@users.noreply.github.com> | 2023-06-12 16:50:59 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 16:50:59 -0300 |
| commit | 28e1429daf96889fa8d0b05c8f24dfeaa6f6881d (patch) | |
| tree | 5676f2516f33f855a02df13e89d401c8067fae21 /src/video_core/vulkan_common/vulkan_device.h | |
| parent | d40c8428a0a9a5dc6677fff4bc830cc10b42f885 (diff) | |
| parent | b646ac2908ba7c12e0d61b8b9fac23f9a358f44e (diff) | |
Merge pull request #10699 from liamwhite/conditional-barrier
shader_recompiler: remove barriers in conditional control flow when device lacks support
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 0c53e35a68..f314d0ffe4 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -585,6 +585,10 @@ public: return properties.properties.limits.maxVertexInputBindings; } + bool SupportsConditionalBarriers() const { + return supports_conditional_barriers; + } + private: /// Checks if the physical device is suitable and configures the object state /// with all necessary info about its properties. @@ -688,6 +692,7 @@ private: bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format. bool dynamic_state3_blending{}; ///< Has all blending features of dynamic_state3. bool dynamic_state3_enables{}; ///< Has all enables features of dynamic_state3. + bool supports_conditional_barriers{}; ///< Allows barriers in conditional control flow. u64 device_access_memory{}; ///< Total size of device local memory in bytes. u32 sets_per_pool{}; ///< Sets per Description Pool |
