diff options
| author | 2021-04-03 01:48:39 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:26 -0400 | |
| commit | baec84247fe815199595d9e8077b71f3b5c8317e (patch) | |
| tree | 84195625ffb43922ba87b25296057bdeb9f22a2c /src/shader_recompiler/frontend/ir/modifiers.h | |
| parent | shader: Implement SR_LaneId (diff) | |
| download | yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.tar.gz yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.tar.xz yuzu-baec84247fe815199595d9e8077b71f3b5c8317e.zip | |
shader: Address Feedback
Diffstat (limited to 'src/shader_recompiler/frontend/ir/modifiers.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/modifiers.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/shader_recompiler/frontend/ir/modifiers.h b/src/shader_recompiler/frontend/ir/modifiers.h index 7730c25a9..2aa4ac79b 100644 --- a/src/shader_recompiler/frontend/ir/modifiers.h +++ b/src/shader_recompiler/frontend/ir/modifiers.h | |||
| @@ -25,13 +25,7 @@ enum class FpRounding : u8 { | |||
| 25 | RZ, // Round towards zero | 25 | RZ, // Round towards zero |
| 26 | }; | 26 | }; |
| 27 | 27 | ||
| 28 | enum class MemoryScope : u32 { | 28 | enum class MemoryScope : u32 { DontCare, Warp, Workgroup, Device, System }; |
| 29 | DontCare, | ||
| 30 | Warp, | ||
| 31 | Workgroup, | ||
| 32 | Device, | ||
| 33 | System | ||
| 34 | }; | ||
| 35 | 29 | ||
| 36 | struct FpControl { | 30 | struct FpControl { |
| 37 | bool no_contraction{false}; | 31 | bool no_contraction{false}; |
| @@ -40,11 +34,6 @@ struct FpControl { | |||
| 40 | }; | 34 | }; |
| 41 | static_assert(sizeof(FpControl) <= sizeof(u32)); | 35 | static_assert(sizeof(FpControl) <= sizeof(u32)); |
| 42 | 36 | ||
| 43 | union BarrierInstInfo { | ||
| 44 | u32 raw; | ||
| 45 | BitField<0, 3, MemoryScope> scope; | ||
| 46 | }; | ||
| 47 | |||
| 48 | union TextureInstInfo { | 37 | union TextureInstInfo { |
| 49 | u32 raw; | 38 | u32 raw; |
| 50 | BitField<0, 8, TextureType> type; | 39 | BitField<0, 8, TextureType> type; |