summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
diff options
context:
space:
mode:
authorGravatar ameerj2021-05-26 00:16:20 -0400
committerGravatar ameerj2021-07-22 21:51:36 -0400
commit3d086e6130a2c5f0546ccef3b234c65ef2f0c99b (patch)
treeeaddf938c32f9a077ff671db4e9ebe9634304033 /src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp
parentglsl: Track S32 atomics (diff)
downloadyuzu-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.cpp14
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
158void EmitCompositeExtractF32x3([[maybe_unused]] EmitContext& ctx, 158void 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
164void EmitCompositeExtractF32x4([[maybe_unused]] EmitContext& ctx, 163void 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
170void EmitCompositeInsertF32x2([[maybe_unused]] EmitContext& ctx, 168void EmitCompositeInsertF32x2([[maybe_unused]] EmitContext& ctx,