diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-12-06 00:40:01 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-01 22:43:58 +0100 |
commit | d33251db9300e29ae830ec74e0b39ec0aa202b30 (patch) | |
tree | 3f17cbd40dcd970d152001d61aa1d275dbe11280 /src/video_core/renderer_vulkan/vk_state_tracker.h | |
parent | Vulkan Implement Dynamic State 2 LogicOp and PatchVertices (diff) | |
download | yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar.gz yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar.bz2 yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar.lz yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar.xz yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.tar.zst yuzu-d33251db9300e29ae830ec74e0b39ec0aa202b30.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 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_state_tracker.h b/src/video_core/renderer_vulkan/vk_state_tracker.h index 6050f5d26..7cdc70c60 100644 --- a/src/video_core/renderer_vulkan/vk_state_tracker.h +++ b/src/video_core/renderer_vulkan/vk_state_tracker.h @@ -50,8 +50,13 @@ enum : u8 { DepthBiasEnable, StateEnable, LogicOp, + LogicOpEnable, + DepthClampEnable, Blending, + BlendEnable, + BlendEquations, + ColorMask, ViewportSwizzles, Last, @@ -144,6 +149,14 @@ public: return Exchange(Dirty::DepthBiasEnable, false); } + bool TouchLogicOpEnable() { + return Exchange(Dirty::LogicOpEnable, false); + } + + bool TouchDepthClampEnable() { + return Exchange(Dirty::DepthClampEnable, false); + } + bool TouchDepthCompareOp() { return Exchange(Dirty::DepthCompareOp, false); } @@ -156,6 +169,22 @@ public: return Exchange(Dirty::StencilOp, false); } + bool TouchBlending() { + return Exchange(Dirty::Blending, false); + } + + bool TouchBlendEnable() { + return Exchange(Dirty::BlendEnable, false); + } + + bool TouchBlendEquations() { + return Exchange(Dirty::BlendEquations, false); + } + + bool TouchColorMask() { + return Exchange(Dirty::ColorMask, false); + } + bool TouchStencilTestEnable() { return Exchange(Dirty::StencilTestEnable, false); } |