diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-26 06:16:20 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:36 +0200 |
commit | 3d086e6130a2c5f0546ccef3b234c65ef2f0c99b (patch) | |
tree | eaddf938c32f9a077ff671db4e9ebe9634304033 /src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | |
parent | glsl: Track S32 atomics (diff) | |
download | yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.gz yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.bz2 yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.lz yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.xz yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.tar.zst yuzu-3d086e6130a2c5f0546ccef3b234c65ef2f0c99b.zip |
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 ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); } -void EmitCompositeExtractF32x3([[maybe_unused]] EmitContext& ctx, - [[maybe_unused]] std::string_view composite, - [[maybe_unused]] u32 index) { - throw NotImplementedException("GLSL Instruction"); +void EmitCompositeExtractF32x3(EmitContext& ctx, IR::Inst& inst, std::string_view composite, + u32 index) { + ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); } -void EmitCompositeExtractF32x4([[maybe_unused]] EmitContext& ctx, - [[maybe_unused]] std::string_view composite, - [[maybe_unused]] u32 index) { - throw NotImplementedException("GLSL Instruction"); +void EmitCompositeExtractF32x4(EmitContext& ctx, IR::Inst& inst, std::string_view composite, + u32 index) { + ctx.AddF32("{}={}.{};", inst, composite, SWIZZLE[index]); } void EmitCompositeInsertF32x2([[maybe_unused]] EmitContext& ctx, |