diff options
| author | 2021-05-26 00:16:20 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 3d086e6130a2c5f0546ccef3b234c65ef2f0c99b (patch) | |
| tree | eaddf938c32f9a077ff671db4e9ebe9634304033 /src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | |
| parent | glsl: Track S32 atomics (diff) | |
| download | yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.gz yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.xz yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.zip | |
glsl: Implement some attribute getters and setters
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp index 8e7ad68bd..048b12f38 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | |||
| @@ -155,16 +155,14 @@ void EmitCompositeExtractF32x2(EmitContext& ctx, IR::Inst& inst, std::string_vie | |||
| 155 | ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); | 155 | ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | void EmitCompositeExtractF32x3([[maybe_unused]] EmitContext& ctx, | 158 | void EmitCompositeExtractF32x3(EmitContext& ctx, IR::Inst& inst, std::string_view composite, |
| 159 | [[maybe_unused]] std::string_view composite, | 159 | u32 index) { |
| 160 | [[maybe_unused]] u32 index) { | 160 | ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); |
| 161 | throw NotImplementedException("GLSL Instruction"); | ||
| 162 | } | 161 | } |
| 163 | 162 | ||
| 164 | void EmitCompositeExtractF32x4([[maybe_unused]] EmitContext& ctx, | 163 | void EmitCompositeExtractF32x4(EmitContext& ctx, IR::Inst& inst, std::string_view composite, |
| 165 | [[maybe_unused]] std::string_view composite, | 164 | u32 index) { |
| 166 | [[maybe_unused]] u32 index) { | 165 | ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); |
| 167 | throw NotImplementedException("GLSL Instruction"); | ||
| 168 | } | 166 | } |
| 169 | 167 | ||
| 170 | void EmitCompositeInsertF32x2([[maybe_unused]] EmitContext& ctx, | 168 | void EmitCompositeInsertF32x2([[maybe_unused]] EmitContext& ctx, |