diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-07 04:21:29 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-06-07 04:21:29 +0200 |
commit | 128aeba0f3fc2477f91a00b1aba866f113a6945f (patch) | |
tree | 1022593280140fa23c14b78c7dfebf0b20ea1cfe /src/video_core/engines/shader_bytecode.h | |
parent | Merge pull request #537 from bunnei/misc-shader (diff) | |
download | yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar.gz yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar.bz2 yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar.lz yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar.xz yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.tar.zst yuzu-128aeba0f3fc2477f91a00b1aba866f113a6945f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index ab45cfbef..2cda1e63e 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -168,13 +168,22 @@ enum class SubOp : u64 { Min = 0x8, }; -enum class FloatRoundingOp : u64 { +enum class F2iRoundingOp : u64 { None = 0, Floor = 1, Ceil = 2, Trunc = 3, }; +enum class F2fRoundingOp : u64 { + None = 0, + Pass = 3, + Round = 8, + Floor = 9, + Ceil = 10, + Trunc = 11, +}; + enum class UniformType : u64 { UnsignedByte = 0, SignedByte = 1, @@ -314,11 +323,11 @@ union Instruction { BitField<50, 1, u64> saturate_a; union { - BitField<39, 2, FloatRoundingOp> rounding; + BitField<39, 2, F2iRoundingOp> rounding; } f2i; union { - BitField<39, 4, u64> rounding; + BitField<39, 4, F2fRoundingOp> rounding; } f2f; } conversion; |