summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
index 016bccd39..3f1b56a05 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl_integer.cpp
@@ -22,7 +22,7 @@ void EmitIAdd64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& in
22 22
23void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 23void EmitISub32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
24 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) { 24 [[maybe_unused]] std::string_view a, [[maybe_unused]] std::string_view b) {
25 throw NotImplementedException("GLSL Instruction"); 25 ctx.AddU32("{}={}-{};", inst, a, b);
26} 26}
27 27
28void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 28void EmitISub64([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
@@ -111,26 +111,26 @@ void EmitBitFieldInsert([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::
111 [[maybe_unused]] std::string_view insert, 111 [[maybe_unused]] std::string_view insert,
112 [[maybe_unused]] std::string_view offset, 112 [[maybe_unused]] std::string_view offset,
113 [[maybe_unused]] std::string_view count) { 113 [[maybe_unused]] std::string_view count) {
114 throw NotImplementedException("GLSL Instruction"); 114 ctx.AddU32("{}=bitfieldInsert({}, {}, int({}), int({}));", inst, base, insert, offset, count);
115} 115}
116 116
117void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 117void EmitBitFieldSExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
118 [[maybe_unused]] std::string_view base, 118 [[maybe_unused]] std::string_view base,
119 [[maybe_unused]] std::string_view offset, 119 [[maybe_unused]] std::string_view offset,
120 [[maybe_unused]] std::string_view count) { 120 [[maybe_unused]] std::string_view count) {
121 throw NotImplementedException("GLSL Instruction"); 121 ctx.AddU32("{}=bitfieldExtract(int({}), int({}), int({}));", inst, base, offset, count);
122} 122}
123 123
124void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 124void EmitBitFieldUExtract([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
125 [[maybe_unused]] std::string_view base, 125 [[maybe_unused]] std::string_view base,
126 [[maybe_unused]] std::string_view offset, 126 [[maybe_unused]] std::string_view offset,
127 [[maybe_unused]] std::string_view count) { 127 [[maybe_unused]] std::string_view count) {
128 throw NotImplementedException("GLSL Instruction"); 128 ctx.AddU32("{}=bitfieldExtract({}, int({}), int({}));", inst, base, offset, count);
129} 129}
130 130
131void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 131void EmitBitReverse32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,
132 [[maybe_unused]] std::string_view value) { 132 [[maybe_unused]] std::string_view value) {
133 throw NotImplementedException("GLSL Instruction"); 133 ctx.AddU32("{}=bitfieldReverse({});", inst, value);
134} 134}
135 135
136void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst, 136void EmitBitCount32([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst& inst,