diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | 194 |
1 files changed, 97 insertions, 97 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp index c395248ed..247118dff 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp | |||
| @@ -9,103 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | namespace Shader::Backend::GLASM { | 10 | namespace Shader::Backend::GLASM { |
| 11 | 11 | ||
| 12 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { | 12 | std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info, |
| 13 | throw LogicError("Unreachable instruction"); | ||
| 14 | } | ||
| 15 | |||
| 16 | void EmitBindlessImageSampleExplicitLod(EmitContext&) { | ||
| 17 | throw LogicError("Unreachable instruction"); | ||
| 18 | } | ||
| 19 | |||
| 20 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) { | ||
| 21 | throw LogicError("Unreachable instruction"); | ||
| 22 | } | ||
| 23 | |||
| 24 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) { | ||
| 25 | throw LogicError("Unreachable instruction"); | ||
| 26 | } | ||
| 27 | |||
| 28 | void EmitBindlessImageGather(EmitContext&) { | ||
| 29 | throw LogicError("Unreachable instruction"); | ||
| 30 | } | ||
| 31 | |||
| 32 | void EmitBindlessImageGatherDref(EmitContext&) { | ||
| 33 | throw LogicError("Unreachable instruction"); | ||
| 34 | } | ||
| 35 | |||
| 36 | void EmitBindlessImageFetch(EmitContext&) { | ||
| 37 | throw LogicError("Unreachable instruction"); | ||
| 38 | } | ||
| 39 | |||
| 40 | void EmitBindlessImageQueryDimensions(EmitContext&) { | ||
| 41 | throw LogicError("Unreachable instruction"); | ||
| 42 | } | ||
| 43 | |||
| 44 | void EmitBindlessImageQueryLod(EmitContext&) { | ||
| 45 | throw LogicError("Unreachable instruction"); | ||
| 46 | } | ||
| 47 | |||
| 48 | void EmitBindlessImageGradient(EmitContext&) { | ||
| 49 | throw LogicError("Unreachable instruction"); | ||
| 50 | } | ||
| 51 | |||
| 52 | void EmitBindlessImageRead(EmitContext&) { | ||
| 53 | throw LogicError("Unreachable instruction"); | ||
| 54 | } | ||
| 55 | |||
| 56 | void EmitBindlessImageWrite(EmitContext&) { | ||
| 57 | throw LogicError("Unreachable instruction"); | ||
| 58 | } | ||
| 59 | |||
| 60 | void EmitBoundImageSampleImplicitLod(EmitContext&) { | ||
| 61 | throw LogicError("Unreachable instruction"); | ||
| 62 | } | ||
| 63 | |||
| 64 | void EmitBoundImageSampleExplicitLod(EmitContext&) { | ||
| 65 | throw LogicError("Unreachable instruction"); | ||
| 66 | } | ||
| 67 | |||
| 68 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&) { | ||
| 69 | throw LogicError("Unreachable instruction"); | ||
| 70 | } | ||
| 71 | |||
| 72 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&) { | ||
| 73 | throw LogicError("Unreachable instruction"); | ||
| 74 | } | ||
| 75 | |||
| 76 | void EmitBoundImageGather(EmitContext&) { | ||
| 77 | throw LogicError("Unreachable instruction"); | ||
| 78 | } | ||
| 79 | |||
| 80 | void EmitBoundImageGatherDref(EmitContext&) { | ||
| 81 | throw LogicError("Unreachable instruction"); | ||
| 82 | } | ||
| 83 | |||
| 84 | void EmitBoundImageFetch(EmitContext&) { | ||
| 85 | throw LogicError("Unreachable instruction"); | ||
| 86 | } | ||
| 87 | |||
| 88 | void EmitBoundImageQueryDimensions(EmitContext&) { | ||
| 89 | throw LogicError("Unreachable instruction"); | ||
| 90 | } | ||
| 91 | |||
| 92 | void EmitBoundImageQueryLod(EmitContext&) { | ||
| 93 | throw LogicError("Unreachable instruction"); | ||
| 94 | } | ||
| 95 | |||
| 96 | void EmitBoundImageGradient(EmitContext&) { | ||
| 97 | throw LogicError("Unreachable instruction"); | ||
| 98 | } | ||
| 99 | |||
| 100 | void EmitBoundImageRead(EmitContext&) { | ||
| 101 | throw LogicError("Unreachable instruction"); | ||
| 102 | } | ||
| 103 | |||
| 104 | void EmitBoundImageWrite(EmitContext&) { | ||
| 105 | throw LogicError("Unreachable instruction"); | ||
| 106 | } | ||
| 107 | |||
| 108 | static std::string Texture([[maybe_unused]] EmitContext& ctx, IR::TextureInstInfo info, | ||
| 109 | [[maybe_unused]] const IR::Value& index) { | 13 | [[maybe_unused]] const IR::Value& index) { |
| 110 | // FIXME | 14 | // FIXME |
| 111 | return fmt::format("texture[{}]", info.descriptor_index); | 15 | return fmt::format("texture[{}]", info.descriptor_index); |
| @@ -242,4 +146,100 @@ void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst | |||
| 242 | throw NotImplementedException("GLASM instruction"); | 146 | throw NotImplementedException("GLASM instruction"); |
| 243 | } | 147 | } |
| 244 | 148 | ||
| 149 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { | ||
| 150 | throw LogicError("Unreachable instruction"); | ||
| 151 | } | ||
| 152 | |||
| 153 | void EmitBindlessImageSampleExplicitLod(EmitContext&) { | ||
| 154 | throw LogicError("Unreachable instruction"); | ||
| 155 | } | ||
| 156 | |||
| 157 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) { | ||
| 158 | throw LogicError("Unreachable instruction"); | ||
| 159 | } | ||
| 160 | |||
| 161 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) { | ||
| 162 | throw LogicError("Unreachable instruction"); | ||
| 163 | } | ||
| 164 | |||
| 165 | void EmitBindlessImageGather(EmitContext&) { | ||
| 166 | throw LogicError("Unreachable instruction"); | ||
| 167 | } | ||
| 168 | |||
| 169 | void EmitBindlessImageGatherDref(EmitContext&) { | ||
| 170 | throw LogicError("Unreachable instruction"); | ||
| 171 | } | ||
| 172 | |||
| 173 | void EmitBindlessImageFetch(EmitContext&) { | ||
| 174 | throw LogicError("Unreachable instruction"); | ||
| 175 | } | ||
| 176 | |||
| 177 | void EmitBindlessImageQueryDimensions(EmitContext&) { | ||
| 178 | throw LogicError("Unreachable instruction"); | ||
| 179 | } | ||
| 180 | |||
| 181 | void EmitBindlessImageQueryLod(EmitContext&) { | ||
| 182 | throw LogicError("Unreachable instruction"); | ||
| 183 | } | ||
| 184 | |||
| 185 | void EmitBindlessImageGradient(EmitContext&) { | ||
| 186 | throw LogicError("Unreachable instruction"); | ||
| 187 | } | ||
| 188 | |||
| 189 | void EmitBindlessImageRead(EmitContext&) { | ||
| 190 | throw LogicError("Unreachable instruction"); | ||
| 191 | } | ||
| 192 | |||
| 193 | void EmitBindlessImageWrite(EmitContext&) { | ||
| 194 | throw LogicError("Unreachable instruction"); | ||
| 195 | } | ||
| 196 | |||
| 197 | void EmitBoundImageSampleImplicitLod(EmitContext&) { | ||
| 198 | throw LogicError("Unreachable instruction"); | ||
| 199 | } | ||
| 200 | |||
| 201 | void EmitBoundImageSampleExplicitLod(EmitContext&) { | ||
| 202 | throw LogicError("Unreachable instruction"); | ||
| 203 | } | ||
| 204 | |||
| 205 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&) { | ||
| 206 | throw LogicError("Unreachable instruction"); | ||
| 207 | } | ||
| 208 | |||
| 209 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&) { | ||
| 210 | throw LogicError("Unreachable instruction"); | ||
| 211 | } | ||
| 212 | |||
| 213 | void EmitBoundImageGather(EmitContext&) { | ||
| 214 | throw LogicError("Unreachable instruction"); | ||
| 215 | } | ||
| 216 | |||
| 217 | void EmitBoundImageGatherDref(EmitContext&) { | ||
| 218 | throw LogicError("Unreachable instruction"); | ||
| 219 | } | ||
| 220 | |||
| 221 | void EmitBoundImageFetch(EmitContext&) { | ||
| 222 | throw LogicError("Unreachable instruction"); | ||
| 223 | } | ||
| 224 | |||
| 225 | void EmitBoundImageQueryDimensions(EmitContext&) { | ||
| 226 | throw LogicError("Unreachable instruction"); | ||
| 227 | } | ||
| 228 | |||
| 229 | void EmitBoundImageQueryLod(EmitContext&) { | ||
| 230 | throw LogicError("Unreachable instruction"); | ||
| 231 | } | ||
| 232 | |||
| 233 | void EmitBoundImageGradient(EmitContext&) { | ||
| 234 | throw LogicError("Unreachable instruction"); | ||
| 235 | } | ||
| 236 | |||
| 237 | void EmitBoundImageRead(EmitContext&) { | ||
| 238 | throw LogicError("Unreachable instruction"); | ||
| 239 | } | ||
| 240 | |||
| 241 | void EmitBoundImageWrite(EmitContext&) { | ||
| 242 | throw LogicError("Unreachable instruction"); | ||
| 243 | } | ||
| 244 | |||
| 245 | } // namespace Shader::Backend::GLASM | 245 | } // namespace Shader::Backend::GLASM |