summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-22 07:52:03 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commit5e9095ef2203e7cddcaba84fa3b01cc0d940b634 (patch)
tree3ecb46dfb2a04ed269ccb07eb85cfa7c8e44a99d /src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
parentglsl: Fixup build issues (diff)
downloadyuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.gz
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.bz2
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.lz
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.xz
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.tar.zst
yuzu-5e9095ef2203e7cddcaba84fa3b01cc0d940b634.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
index 2a7d207a7..40b9ca08e 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
@@ -10,9 +10,8 @@
#include "shader_recompiler/profile.h"
namespace Shader::Backend::GLSL {
-void EmitCompositeConstructU32x2([[maybe_unused]] EmitContext& ctx, IR::Inst& inst,
- [[maybe_unused]] std::string_view e1,
- [[maybe_unused]] std::string_view e2) {
+void EmitCompositeConstructU32x2(EmitContext& ctx, IR::Inst& inst, std::string_view e1,
+ std::string_view e2) {
ctx.AddU32x2("{}=uvec2({},{});", inst, e1, e2);
}
@@ -31,9 +30,8 @@ void EmitCompositeConstructU32x4([[maybe_unused]] EmitContext& ctx,
throw NotImplementedException("GLSL Instruction");
}
-void EmitCompositeExtractU32x2([[maybe_unused]] EmitContext& ctx, IR::Inst& inst,
- [[maybe_unused]] std::string_view composite,
- [[maybe_unused]] u32 index) {
+void EmitCompositeExtractU32x2(EmitContext& ctx, IR::Inst& inst, std::string_view composite,
+ u32 index) {
ctx.AddU32("{}={}[{}];", inst, composite, index);
}
@@ -130,10 +128,9 @@ void EmitCompositeInsertF16x4([[maybe_unused]] EmitContext& ctx,
throw NotImplementedException("GLSL Instruction");
}
-void EmitCompositeConstructF32x2([[maybe_unused]] EmitContext& ctx,
- [[maybe_unused]] std::string_view e1,
- [[maybe_unused]] std::string_view e2) {
- throw NotImplementedException("GLSL Instruction");
+void EmitCompositeConstructF32x2(EmitContext& ctx, IR::Inst& inst, std::string_view e1,
+ std::string_view e2) {
+ ctx.AddF32x2("{}=uvec2({},{});", inst, e1, e2);
}
void EmitCompositeConstructF32x3([[maybe_unused]] EmitContext& ctx,
@@ -151,10 +148,9 @@ void EmitCompositeConstructF32x4([[maybe_unused]] EmitContext& ctx,
throw NotImplementedException("GLSL Instruction");
}
-void EmitCompositeExtractF32x2([[maybe_unused]] EmitContext& ctx,
- [[maybe_unused]] std::string_view composite,
- [[maybe_unused]] u32 index) {
- throw NotImplementedException("GLSL Instruction");
+void EmitCompositeExtractF32x2(EmitContext& ctx, IR::Inst& inst, std::string_view composite,
+ u32 index) {
+ ctx.AddF32("{}={}[{}];", inst, composite, index);
}
void EmitCompositeExtractF32x3([[maybe_unused]] EmitContext& ctx,