diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-10-24 00:58:04 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-20 18:05:53 +0100 |
commit | 7e210e0229b9caef77c80fea7c056c3913e68129 (patch) | |
tree | 5b043321e3f8d04208128843c94bff1626f3289f /src/video_core/debug_utils | |
parent | Pica: Merge texture lookup logic for DebugUtils and Rasterizer. (diff) | |
download | yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.gz yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.bz2 yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.lz yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.xz yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.tar.zst yuzu-7e210e0229b9caef77c80fea7c056c3913e68129.zip |
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 6c26138da..3cc22f436 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp @@ -573,20 +573,26 @@ void DumpTevStageConfig(const std::array<Pica::Regs::TevStageConfig,6>& stages) const std::map<Source, std::string> source_map = { { Source::PrimaryColor, "PrimaryColor" }, { Source::Texture0, "Texture0" }, + { Source::Texture1, "Texture1" }, + { Source::Texture2, "Texture2" }, { Source::Constant, "Constant" }, { Source::Previous, "Previous" }, }; const std::map<ColorModifier, std::string> color_modifier_map = { - { ColorModifier::SourceColor, { "%source.rgb" } } + { ColorModifier::SourceColor, { "%source.rgb" } }, + { ColorModifier::SourceAlpha, { "%source.aaa" } }, }; const std::map<AlphaModifier, std::string> alpha_modifier_map = { - { AlphaModifier::SourceAlpha, "%source.a" } + { AlphaModifier::SourceAlpha, "%source.a" }, + { AlphaModifier::OneMinusSourceAlpha, "(255 - %source.a)" }, }; std::map<Operation, std::string> combiner_map = { { Operation::Replace, "%source1" }, { Operation::Modulate, "(%source1 * %source2) / 255" }, + { Operation::Add, "(%source1 + %source2)" }, + { Operation::Lerp, "lerp(%source1, %source2, %source3)" }, }; auto ReplacePattern = |