diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-09-01 08:34:27 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-09-01 08:34:27 +0200 |
commit | ad3dca7e62373fe9d7df50414178fe65322e6a06 (patch) | |
tree | 640c076e8a3d49960f07d8ce6a53449e0a9523df /src/video_core/engines/shader_bytecode.h | |
parent | Merge pull request #1196 from FearlessTobi/ccache-consistency (diff) | |
download | yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar.gz yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar.bz2 yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar.lz yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar.xz yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.tar.zst yuzu-ad3dca7e62373fe9d7df50414178fe65322e6a06.zip |
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 3e4efbe0c..2707ce3a2 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -243,7 +243,8 @@ enum class TextureType : u64 { TextureCube = 3, }; -enum class IpaMode : u64 { Pass = 0, None = 1, Constant = 2, Sc = 3 }; +enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, Flat = 2, Sc = 3 }; +enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 }; union Instruction { Instruction& operator=(const Instruction& instr) { @@ -328,7 +329,9 @@ union Instruction { } alu; union { - BitField<54, 3, IpaMode> mode; + BitField<51, 1, u64> saturate; + BitField<52, 2, IpaSampleMode> sample_mode; + BitField<54, 2, IpaInterpMode> interp_mode; } ipa; union { |