diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-25 10:21:51 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:39 +0200 |
commit | 57a8921e01a90ff5993079dd638a6c48e5781756 (patch) | |
tree | 90c7c3b044c85f08dd5c2341c87414062be7db17 /src/video_core/renderer_vulkan/vk_state_tracker.h | |
parent | spirv: Fix code emission when descriptor aliasing is unsupported (diff) | |
download | yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.gz yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.bz2 yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.lz yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.xz yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.tar.zst yuzu-57a8921e01a90ff5993079dd638a6c48e5781756.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_state_tracker.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_state_tracker.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_state_tracker.h b/src/video_core/renderer_vulkan/vk_state_tracker.h index 1976b7e9b..5f78f6950 100644 --- a/src/video_core/renderer_vulkan/vk_state_tracker.h +++ b/src/video_core/renderer_vulkan/vk_state_tracker.h @@ -31,6 +31,7 @@ enum : u8 { BlendConstants, DepthBounds, StencilProperties, + LineWidth, CullMode, DepthBoundsEnable, @@ -44,7 +45,7 @@ enum : u8 { Blending, ViewportSwizzles, - Last + Last, }; static_assert(Last <= std::numeric_limits<u8>::max()); @@ -93,6 +94,10 @@ public: return Exchange(Dirty::StencilProperties, false); } + bool TouchLineWidth() const { + return Exchange(Dirty::LineWidth, false); + } + bool TouchCullMode() { return Exchange(Dirty::CullMode, false); } |