diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | 205 |
1 files changed, 205 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp index e69de29bb..109938e0e 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |||
| @@ -0,0 +1,205 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include <string_view> | ||
| 6 | |||
| 7 | #include "shader_recompiler/backend/glsl/emit_context.h" | ||
| 8 | #include "shader_recompiler/backend/glsl/emit_glsl_instructions.h" | ||
| 9 | #include "shader_recompiler/frontend/ir/value.h" | ||
| 10 | #include "shader_recompiler/profile.h" | ||
| 11 | |||
| 12 | namespace Shader::Backend::GLSL { | ||
| 13 | |||
| 14 | void EmitImageSampleImplicitLod([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 15 | [[maybe_unused]] const IR::Value& index, | ||
| 16 | [[maybe_unused]] std::string_view coords, | ||
| 17 | [[maybe_unused]] std::string_view bias_lc, | ||
| 18 | [[maybe_unused]] const IR::Value& offset) { | ||
| 19 | throw NotImplementedException("GLSL Instruction"); | ||
| 20 | } | ||
| 21 | |||
| 22 | void EmitImageSampleExplicitLod([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 23 | [[maybe_unused]] const IR::Value& index, | ||
| 24 | [[maybe_unused]] std::string_view coords, | ||
| 25 | [[maybe_unused]] std::string_view lod_lc, | ||
| 26 | [[maybe_unused]] const IR::Value& offset) { | ||
| 27 | throw NotImplementedException("GLSL Instruction"); | ||
| 28 | } | ||
| 29 | |||
| 30 | void EmitImageSampleDrefImplicitLod([[maybe_unused]] EmitContext& ctx, | ||
| 31 | [[maybe_unused]] IR::Inst& inst, | ||
| 32 | [[maybe_unused]] const IR::Value& index, | ||
| 33 | [[maybe_unused]] std::string_view coords, | ||
| 34 | [[maybe_unused]] std::string_view dref, | ||
| 35 | [[maybe_unused]] std::string_view bias_lc, | ||
| 36 | [[maybe_unused]] const IR::Value& offset) { | ||
| 37 | throw NotImplementedException("GLSL Instruction"); | ||
| 38 | } | ||
| 39 | |||
| 40 | void EmitImageSampleDrefExplicitLod([[maybe_unused]] EmitContext& ctx, | ||
| 41 | [[maybe_unused]] IR::Inst& inst, | ||
| 42 | [[maybe_unused]] const IR::Value& index, | ||
| 43 | [[maybe_unused]] std::string_view coords, | ||
| 44 | [[maybe_unused]] std::string_view dref, | ||
| 45 | [[maybe_unused]] std::string_view lod_lc, | ||
| 46 | [[maybe_unused]] const IR::Value& offset) { | ||
| 47 | throw NotImplementedException("GLSL Instruction"); | ||
| 48 | } | ||
| 49 | |||
| 50 | void EmitImageGather([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 51 | [[maybe_unused]] const IR::Value& index, | ||
| 52 | [[maybe_unused]] std::string_view coords, | ||
| 53 | [[maybe_unused]] const IR::Value& offset, | ||
| 54 | [[maybe_unused]] const IR::Value& offset2) { | ||
| 55 | throw NotImplementedException("GLSL Instruction"); | ||
| 56 | } | ||
| 57 | |||
| 58 | void EmitImageGatherDref([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 59 | [[maybe_unused]] const IR::Value& index, | ||
| 60 | [[maybe_unused]] std::string_view coords, | ||
| 61 | [[maybe_unused]] const IR::Value& offset, | ||
| 62 | [[maybe_unused]] const IR::Value& offset2, | ||
| 63 | [[maybe_unused]] std::string_view dref) { | ||
| 64 | throw NotImplementedException("GLSL Instruction"); | ||
| 65 | } | ||
| 66 | |||
| 67 | void EmitImageFetch([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 68 | [[maybe_unused]] const IR::Value& index, | ||
| 69 | [[maybe_unused]] std::string_view coords, | ||
| 70 | [[maybe_unused]] std::string_view offset, [[maybe_unused]] std::string_view lod, | ||
| 71 | [[maybe_unused]] std::string_view ms) { | ||
| 72 | throw NotImplementedException("GLSL Instruction"); | ||
| 73 | } | ||
| 74 | |||
| 75 | void EmitImageQueryDimensions([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 76 | [[maybe_unused]] const IR::Value& index, | ||
| 77 | [[maybe_unused]] std::string_view lod) { | ||
| 78 | throw NotImplementedException("GLSL Instruction"); | ||
| 79 | } | ||
| 80 | |||
| 81 | void EmitImageQueryLod([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 82 | [[maybe_unused]] const IR::Value& index, | ||
| 83 | [[maybe_unused]] std::string_view coords) { | ||
| 84 | throw NotImplementedException("GLSL Instruction"); | ||
| 85 | } | ||
| 86 | |||
| 87 | void EmitImageGradient([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 88 | [[maybe_unused]] const IR::Value& index, | ||
| 89 | [[maybe_unused]] std::string_view coords, | ||
| 90 | [[maybe_unused]] std::string_view derivates, | ||
| 91 | [[maybe_unused]] std::string_view offset, | ||
| 92 | [[maybe_unused]] std::string_view lod_clamp) { | ||
| 93 | throw NotImplementedException("GLSL Instruction"); | ||
| 94 | } | ||
| 95 | |||
| 96 | void EmitImageRead([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 97 | [[maybe_unused]] const IR::Value& index, | ||
| 98 | [[maybe_unused]] std::string_view coords) { | ||
| 99 | throw NotImplementedException("GLSL Instruction"); | ||
| 100 | } | ||
| 101 | |||
| 102 | void EmitImageWrite([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, | ||
| 103 | [[maybe_unused]] const IR::Value& index, | ||
| 104 | [[maybe_unused]] std::string_view coords, | ||
| 105 | [[maybe_unused]] std::string_view color) { | ||
| 106 | throw NotImplementedException("GLSL Instruction"); | ||
| 107 | } | ||
| 108 | |||
| 109 | void EmitBindlessImageSampleImplicitLod(EmitContext&) { | ||
| 110 | throw NotImplementedException("GLSL Instruction"); | ||
| 111 | } | ||
| 112 | |||
| 113 | void EmitBindlessImageSampleExplicitLod(EmitContext&) { | ||
| 114 | throw NotImplementedException("GLSL Instruction"); | ||
| 115 | } | ||
| 116 | |||
| 117 | void EmitBindlessImageSampleDrefImplicitLod(EmitContext&) { | ||
| 118 | throw NotImplementedException("GLSL Instruction"); | ||
| 119 | } | ||
| 120 | |||
| 121 | void EmitBindlessImageSampleDrefExplicitLod(EmitContext&) { | ||
| 122 | throw NotImplementedException("GLSL Instruction"); | ||
| 123 | } | ||
| 124 | |||
| 125 | void EmitBindlessImageGather(EmitContext&) { | ||
| 126 | throw NotImplementedException("GLSL Instruction"); | ||
| 127 | } | ||
| 128 | |||
| 129 | void EmitBindlessImageGatherDref(EmitContext&) { | ||
| 130 | throw NotImplementedException("GLSL Instruction"); | ||
| 131 | } | ||
| 132 | |||
| 133 | void EmitBindlessImageFetch(EmitContext&) { | ||
| 134 | throw NotImplementedException("GLSL Instruction"); | ||
| 135 | } | ||
| 136 | |||
| 137 | void EmitBindlessImageQueryDimensions(EmitContext&) { | ||
| 138 | throw NotImplementedException("GLSL Instruction"); | ||
| 139 | } | ||
| 140 | |||
| 141 | void EmitBindlessImageQueryLod(EmitContext&) { | ||
| 142 | throw NotImplementedException("GLSL Instruction"); | ||
| 143 | } | ||
| 144 | |||
| 145 | void EmitBindlessImageGradient(EmitContext&) { | ||
| 146 | throw NotImplementedException("GLSL Instruction"); | ||
| 147 | } | ||
| 148 | |||
| 149 | void EmitBindlessImageRead(EmitContext&) { | ||
| 150 | throw NotImplementedException("GLSL Instruction"); | ||
| 151 | } | ||
| 152 | |||
| 153 | void EmitBindlessImageWrite(EmitContext&) { | ||
| 154 | throw NotImplementedException("GLSL Instruction"); | ||
| 155 | } | ||
| 156 | |||
| 157 | void EmitBoundImageSampleImplicitLod(EmitContext&) { | ||
| 158 | throw NotImplementedException("GLSL Instruction"); | ||
| 159 | } | ||
| 160 | |||
| 161 | void EmitBoundImageSampleExplicitLod(EmitContext&) { | ||
| 162 | throw NotImplementedException("GLSL Instruction"); | ||
| 163 | } | ||
| 164 | |||
| 165 | void EmitBoundImageSampleDrefImplicitLod(EmitContext&) { | ||
| 166 | throw NotImplementedException("GLSL Instruction"); | ||
| 167 | } | ||
| 168 | |||
| 169 | void EmitBoundImageSampleDrefExplicitLod(EmitContext&) { | ||
| 170 | throw NotImplementedException("GLSL Instruction"); | ||
| 171 | } | ||
| 172 | |||
| 173 | void EmitBoundImageGather(EmitContext&) { | ||
| 174 | throw NotImplementedException("GLSL Instruction"); | ||
| 175 | } | ||
| 176 | |||
| 177 | void EmitBoundImageGatherDref(EmitContext&) { | ||
| 178 | throw NotImplementedException("GLSL Instruction"); | ||
| 179 | } | ||
| 180 | |||
| 181 | void EmitBoundImageFetch(EmitContext&) { | ||
| 182 | throw NotImplementedException("GLSL Instruction"); | ||
| 183 | } | ||
| 184 | |||
| 185 | void EmitBoundImageQueryDimensions(EmitContext&) { | ||
| 186 | throw NotImplementedException("GLSL Instruction"); | ||
| 187 | } | ||
| 188 | |||
| 189 | void EmitBoundImageQueryLod(EmitContext&) { | ||
| 190 | throw NotImplementedException("GLSL Instruction"); | ||
| 191 | } | ||
| 192 | |||
| 193 | void EmitBoundImageGradient(EmitContext&) { | ||
| 194 | throw NotImplementedException("GLSL Instruction"); | ||
| 195 | } | ||
| 196 | |||
| 197 | void EmitBoundImageRead(EmitContext&) { | ||
| 198 | throw NotImplementedException("GLSL Instruction"); | ||
| 199 | } | ||
| 200 | |||
| 201 | void EmitBoundImageWrite(EmitContext&) { | ||
| 202 | throw NotImplementedException("GLSL Instruction"); | ||
| 203 | } | ||
| 204 | |||
| 205 | } // namespace Shader::Backend::GLSL | ||