summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/shader_bytecode.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-29 06:37:29 +0200
committerbunnei <bunneidev@gmail.com>2018-08-29 06:37:29 +0200
commitb1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b (patch)
tree12fe797d8597eab090085a46d34eb51acb9f1bc1 /src/video_core/engines/shader_bytecode.h
parentMerge pull request #1193 from lioncash/priv (diff)
downloadyuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar.gz
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar.bz2
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar.lz
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar.xz
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.tar.zst
yuzu-b1ccd8843467e43838e19c50dcfcbc2ff0b3bc0b.zip
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-rw-r--r--src/video_core/engines/shader_bytecode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 625ecdfcd..38ad1ae23 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -230,6 +230,8 @@ enum class TextureType : u64 {
TextureCube = 3,
};
+enum class IpaMode : u64 { Pass = 0, None = 1, Constant = 2, Sc = 3 };
+
union Instruction {
Instruction& operator=(const Instruction& instr) {
value = instr.value;
@@ -313,6 +315,10 @@ union Instruction {
} alu;
union {
+ BitField<54, 3, IpaMode> mode;
+ } ipa;
+
+ union {
BitField<48, 1, u64> negate_b;
} fmul;