diff options
| author | 2021-05-21 19:55:58 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:35 -0400 | |
| commit | fb75d122a242a5e43d36edc916e16a873f807acd (patch) | |
| tree | 1f2c7e7d8f001072d118939725cb18669e26791f /src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |
| parent | glsl: Pass IR::Inst& to Emit functions (diff) | |
| download | yuzu-fb75d122a242a5e43d36edc916e16a873f807acd.tar.gz yuzu-fb75d122a242a5e43d36edc916e16a873f807acd.tar.xz yuzu-fb75d122a242a5e43d36edc916e16a873f807acd.zip | |
glsl: Use std::string_view for Emit function args.
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | 114 |
1 files changed, 63 insertions, 51 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp index 0dadf1d93..a22313141 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp | |||
| @@ -12,221 +12,233 @@ | |||
| 12 | 12 | ||
| 13 | namespace Shader::Backend::GLSL { | 13 | namespace Shader::Backend::GLSL { |
| 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 14 | void EmitIAdd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 15 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 15 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 16 | ctx.AddU32("{}={}+{};", inst, a, b); | 16 | ctx.AddU32("{}={}+{};", inst, a, b); |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 19 | void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 20 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 20 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 21 | throw NotImplementedException("GLSL Instruction"); | 21 | throw NotImplementedException("GLSL Instruction"); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 24 | void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 25 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 25 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 26 | throw NotImplementedException("GLSL Instruction"); | 26 | throw NotImplementedException("GLSL Instruction"); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 29 | void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 30 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 30 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 31 | throw NotImplementedException("GLSL Instruction"); | 31 | throw NotImplementedException("GLSL Instruction"); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 34 | void EmitIMul32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 35 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 35 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 36 | throw NotImplementedException("GLSL Instruction"); | 36 | throw NotImplementedException("GLSL Instruction"); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 39 | void EmitINeg32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 40 | [[maybe_unused]] std::string value) { | 40 | [[maybe_unused]] std::string_view value) { |
| 41 | ctx.AddU32("{}=-{};", inst, value); | 41 | ctx.AddU32("{}=-{};", inst, value); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 44 | void EmitINeg64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 45 | [[maybe_unused]] std::string value) { | 45 | [[maybe_unused]] std::string_view value) { |
| 46 | throw NotImplementedException("GLSL Instruction"); | 46 | throw NotImplementedException("GLSL Instruction"); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 49 | void EmitIAbs32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 50 | [[maybe_unused]] std::string value) { | 50 | [[maybe_unused]] std::string_view value) { |
| 51 | throw NotImplementedException("GLSL Instruction"); | 51 | throw NotImplementedException("GLSL Instruction"); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 54 | void EmitIAbs64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 55 | [[maybe_unused]] std::string value) { | 55 | [[maybe_unused]] std::string_view value) { |
| 56 | throw NotImplementedException("GLSL Instruction"); | 56 | throw NotImplementedException("GLSL Instruction"); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 59 | void EmitShiftLeftLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 60 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 60 | [[maybe_unused]] std::string_view base, |
| 61 | [[maybe_unused]] std::string_view shift) { | ||
| 61 | throw NotImplementedException("GLSL Instruction"); | 62 | throw NotImplementedException("GLSL Instruction"); |
| 62 | } | 63 | } |
| 63 | 64 | ||
| 64 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 65 | void EmitShiftLeftLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 65 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string shift) { | 66 | [[maybe_unused]] std::string_view base, |
| 67 | [[maybe_unused]] std::string_view shift) { | ||
| 66 | throw NotImplementedException("GLSL Instruction"); | 68 | throw NotImplementedException("GLSL Instruction"); |
| 67 | } | 69 | } |
| 68 | 70 | ||
| 69 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 71 | void EmitShiftRightLogical32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 70 | [[maybe_unused]] std::string base, | 72 | [[maybe_unused]] std::string_view base, |
| 71 | [[maybe_unused]] std::string shift) { | 73 | [[maybe_unused]] std::string_view shift) { |
| 72 | throw NotImplementedException("GLSL Instruction"); | 74 | throw NotImplementedException("GLSL Instruction"); |
| 73 | } | 75 | } |
| 74 | 76 | ||
| 75 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 77 | void EmitShiftRightLogical64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 76 | [[maybe_unused]] std::string base, | 78 | [[maybe_unused]] std::string_view base, |
| 77 | [[maybe_unused]] std::string shift) { | 79 | [[maybe_unused]] std::string_view shift) { |
| 78 | throw NotImplementedException("GLSL Instruction"); | 80 | throw NotImplementedException("GLSL Instruction"); |
| 79 | } | 81 | } |
| 80 | 82 | ||
| 81 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 83 | void EmitShiftRightArithmetic32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 82 | [[maybe_unused]] std::string base, | 84 | [[maybe_unused]] std::string_view base, |
| 83 | [[maybe_unused]] std::string shift) { | 85 | [[maybe_unused]] std::string_view shift) { |
| 84 | throw NotImplementedException("GLSL Instruction"); | 86 | throw NotImplementedException("GLSL Instruction"); |
| 85 | } | 87 | } |
| 86 | 88 | ||
| 87 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 89 | void EmitShiftRightArithmetic64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 88 | [[maybe_unused]] std::string base, | 90 | [[maybe_unused]] std::string_view base, |
| 89 | [[maybe_unused]] std::string shift) { | 91 | [[maybe_unused]] std::string_view shift) { |
| 90 | throw NotImplementedException("GLSL Instruction"); | 92 | throw NotImplementedException("GLSL Instruction"); |
| 91 | } | 93 | } |
| 92 | 94 | ||
| 93 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 95 | void EmitBitwiseAnd32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 94 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 96 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 95 | throw NotImplementedException("GLSL Instruction"); | 97 | throw NotImplementedException("GLSL Instruction"); |
| 96 | } | 98 | } |
| 97 | 99 | ||
| 98 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 100 | void EmitBitwiseOr32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 99 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 101 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 100 | throw NotImplementedException("GLSL Instruction"); | 102 | throw NotImplementedException("GLSL Instruction"); |
| 101 | } | 103 | } |
| 102 | 104 | ||
| 103 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 105 | void EmitBitwiseXor32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 104 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 106 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 105 | throw NotImplementedException("GLSL Instruction"); | 107 | throw NotImplementedException("GLSL Instruction"); |
| 106 | } | 108 | } |
| 107 | 109 | ||
| 108 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 110 | void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 109 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string insert, | 111 | [[maybe_unused]] std::string_view base, |
| 110 | [[maybe_unused]] std::string offset, std::string count) { | 112 | [[maybe_unused]] std::string_view insert, |
| 113 | [[maybe_unused]] std::string_view offset, | ||
| 114 | [[maybe_unused]] std::string_view count) { | ||
| 111 | throw NotImplementedException("GLSL Instruction"); | 115 | throw NotImplementedException("GLSL Instruction"); |
| 112 | } | 116 | } |
| 113 | 117 | ||
| 114 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 118 | void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 115 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 119 | [[maybe_unused]] std::string_view base, |
| 116 | std::string count) { | 120 | [[maybe_unused]] std::string_view offset, |
| 121 | [[maybe_unused]] std::string_view count) { | ||
| 117 | throw NotImplementedException("GLSL Instruction"); | 122 | throw NotImplementedException("GLSL Instruction"); |
| 118 | } | 123 | } |
| 119 | 124 | ||
| 120 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 125 | void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 121 | [[maybe_unused]] std::string base, [[maybe_unused]] std::string offset, | 126 | [[maybe_unused]] std::string_view base, |
| 122 | std::string count) { | 127 | [[maybe_unused]] std::string_view offset, |
| 128 | [[maybe_unused]] std::string_view count) { | ||
| 123 | throw NotImplementedException("GLSL Instruction"); | 129 | throw NotImplementedException("GLSL Instruction"); |
| 124 | } | 130 | } |
| 125 | 131 | ||
| 126 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 132 | void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 127 | [[maybe_unused]] std::string value) { | 133 | [[maybe_unused]] std::string_view value) { |
| 128 | throw NotImplementedException("GLSL Instruction"); | 134 | throw NotImplementedException("GLSL Instruction"); |
| 129 | } | 135 | } |
| 130 | 136 | ||
| 131 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 137 | void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 132 | [[maybe_unused]] std::string value) { | 138 | [[maybe_unused]] std::string_view value) { |
| 133 | throw NotImplementedException("GLSL Instruction"); | 139 | throw NotImplementedException("GLSL Instruction"); |
| 134 | } | 140 | } |
| 135 | 141 | ||
| 136 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 142 | void EmitBitwiseNot32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 137 | [[maybe_unused]] std::string value) { | 143 | [[maybe_unused]] std::string_view value) { |
| 138 | throw NotImplementedException("GLSL Instruction"); | 144 | throw NotImplementedException("GLSL Instruction"); |
| 139 | } | 145 | } |
| 140 | 146 | ||
| 141 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 147 | void EmitFindSMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 142 | [[maybe_unused]] std::string value) { | 148 | [[maybe_unused]] std::string_view value) { |
| 143 | throw NotImplementedException("GLSL Instruction"); | 149 | throw NotImplementedException("GLSL Instruction"); |
| 144 | } | 150 | } |
| 145 | 151 | ||
| 146 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 152 | void EmitFindUMsb32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 147 | [[maybe_unused]] std::string value) { | 153 | [[maybe_unused]] std::string_view value) { |
| 148 | throw NotImplementedException("GLSL Instruction"); | 154 | throw NotImplementedException("GLSL Instruction"); |
| 149 | } | 155 | } |
| 150 | 156 | ||
| 151 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 157 | void EmitSMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 152 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 158 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 153 | throw NotImplementedException("GLSL Instruction"); | 159 | throw NotImplementedException("GLSL Instruction"); |
| 154 | } | 160 | } |
| 155 | 161 | ||
| 156 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 162 | void EmitUMin32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 157 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 163 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 158 | throw NotImplementedException("GLSL Instruction"); | 164 | throw NotImplementedException("GLSL Instruction"); |
| 159 | } | 165 | } |
| 160 | 166 | ||
| 161 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 167 | void EmitSMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 162 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 168 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 163 | throw NotImplementedException("GLSL Instruction"); | 169 | throw NotImplementedException("GLSL Instruction"); |
| 164 | } | 170 | } |
| 165 | 171 | ||
| 166 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 172 | void EmitUMax32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 167 | [[maybe_unused]] std::string a, [[maybe_unused]] std::string b) { | 173 | [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { |
| 168 | throw NotImplementedException("GLSL Instruction"); | 174 | throw NotImplementedException("GLSL Instruction"); |
| 169 | } | 175 | } |
| 170 | 176 | ||
| 171 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 177 | void EmitSClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 172 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 178 | [[maybe_unused]] std::string_view value, [[maybe_unused]] std::string_view min, |
| 173 | std::string max) { | 179 | [[maybe_unused]] std::string_view max) { |
| 174 | throw NotImplementedException("GLSL Instruction"); | 180 | throw NotImplementedException("GLSL Instruction"); |
| 175 | } | 181 | } |
| 176 | 182 | ||
| 177 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 183 | void EmitUClamp32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 178 | [[maybe_unused]] std::string value, [[maybe_unused]] std::string min, | 184 | [[maybe_unused]] std::string_view value, [[maybe_unused]] std::string_view min, |
| 179 | std::string max) { | 185 | [[maybe_unused]] std::string_view max) { |
| 180 | throw NotImplementedException("GLSL Instruction"); | 186 | throw NotImplementedException("GLSL Instruction"); |
| 181 | } | 187 | } |
| 182 | 188 | ||
| 183 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 189 | void EmitSLessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 184 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 190 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 185 | throw NotImplementedException("GLSL Instruction"); | 191 | throw NotImplementedException("GLSL Instruction"); |
| 186 | } | 192 | } |
| 187 | 193 | ||
| 188 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 194 | void EmitULessThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 189 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 195 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 190 | throw NotImplementedException("GLSL Instruction"); | 196 | throw NotImplementedException("GLSL Instruction"); |
| 191 | } | 197 | } |
| 192 | 198 | ||
| 193 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 199 | void EmitIEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 194 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 200 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 195 | throw NotImplementedException("GLSL Instruction"); | 201 | throw NotImplementedException("GLSL Instruction"); |
| 196 | } | 202 | } |
| 197 | 203 | ||
| 198 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 204 | void EmitSLessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 199 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 205 | [[maybe_unused]] std::string_view lhs, |
| 206 | [[maybe_unused]] std::string_view rhs) { | ||
| 200 | throw NotImplementedException("GLSL Instruction"); | 207 | throw NotImplementedException("GLSL Instruction"); |
| 201 | } | 208 | } |
| 202 | 209 | ||
| 203 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 210 | void EmitULessThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 204 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 211 | [[maybe_unused]] std::string_view lhs, |
| 212 | [[maybe_unused]] std::string_view rhs) { | ||
| 205 | throw NotImplementedException("GLSL Instruction"); | 213 | throw NotImplementedException("GLSL Instruction"); |
| 206 | } | 214 | } |
| 207 | 215 | ||
| 208 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 216 | void EmitSGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 209 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 217 | [[maybe_unused]] std::string_view lhs, |
| 218 | [[maybe_unused]] std::string_view rhs) { | ||
| 210 | throw NotImplementedException("GLSL Instruction"); | 219 | throw NotImplementedException("GLSL Instruction"); |
| 211 | } | 220 | } |
| 212 | 221 | ||
| 213 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 222 | void EmitUGreaterThan([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 214 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 223 | [[maybe_unused]] std::string_view lhs, |
| 224 | [[maybe_unused]] std::string_view rhs) { | ||
| 215 | throw NotImplementedException("GLSL Instruction"); | 225 | throw NotImplementedException("GLSL Instruction"); |
| 216 | } | 226 | } |
| 217 | 227 | ||
| 218 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 228 | void EmitINotEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 219 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 229 | [[maybe_unused]] std::string_view lhs, [[maybe_unused]] std::string_view rhs) { |
| 220 | throw NotImplementedException("GLSL Instruction"); | 230 | throw NotImplementedException("GLSL Instruction"); |
| 221 | } | 231 | } |
| 222 | 232 | ||
| 223 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 233 | void EmitSGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 224 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 234 | [[maybe_unused]] std::string_view lhs, |
| 235 | [[maybe_unused]] std::string_view rhs) { | ||
| 225 | throw NotImplementedException("GLSL Instruction"); | 236 | throw NotImplementedException("GLSL Instruction"); |
| 226 | } | 237 | } |
| 227 | 238 | ||
| 228 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | 239 | void EmitUGreaterThanEqual([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, |
| 229 | [[maybe_unused]] std::string lhs, [[maybe_unused]] std::string rhs) { | 240 | [[maybe_unused]] std::string_view lhs, |
| 241 | [[maybe_unused]] std::string_view rhs) { | ||
| 230 | throw NotImplementedException("GLSL Instruction"); | 242 | throw NotImplementedException("GLSL Instruction"); |
| 231 | } | 243 | } |
| 232 | } // namespace Shader::Backend::GLSL | 244 | } // namespace Shader::Backend::GLSL |