diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-26 00:39:03 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-31 07:52:41 +0200 |
commit | e6ace388156735d3f5e2942cafc3d5f5d46b121b (patch) | |
tree | a8e24a233560796c8ff3d496653c4ee26db229f8 /src/video_core/pica.h | |
parent | rasterizer: Implement AddSigned combiner function for alpha channel. (diff) | |
download | yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar.gz yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar.bz2 yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar.lz yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar.xz yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.tar.zst yuzu-e6ace388156735d3f5e2942cafc3d5f5d46b121b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/pica.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index fbc95a4b6..f8313d20d 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -162,6 +162,25 @@ struct Regs { ETC1A4 = 13, // compressed }; + enum class LogicOp : u32 { + Clear = 0, + And = 1, + AndReverse = 2, + Copy = 3, + Set = 4, + CopyInverted = 5, + NoOp = 6, + Invert = 7, + Nand = 8, + Or = 9, + Nor = 10, + Xor = 11, + Equiv = 12, + AndInverted = 13, + OrReverse = 14, + OrInverted = 15, + }; + static unsigned NibblesPerPixel(TextureFormat format) { switch (format) { case TextureFormat::RGBA8: @@ -413,12 +432,8 @@ struct Regs { } alpha_blending; union { - enum Op { - Set = 4, - }; - - BitField<0, 4, Op> op; - } logic_op; + BitField<0, 4, LogicOp> logic_op; + }; union { BitField< 0, 8, u32> r; |