summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/ir_emitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index 556961fa4..d94596ee9 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -512,6 +512,14 @@ Value IREmitter::UnpackFloat2x16(const U32& value) {
512 return Inst(Opcode::UnpackFloat2x16, value); 512 return Inst(Opcode::UnpackFloat2x16, value);
513} 513}
514 514
515U32 IREmitter::PackHalf2x16(const Value& vector) {
516 return Inst<U32>(Opcode::PackHalf2x16, vector);
517}
518
519Value IREmitter::UnpackHalf2x16(const U32& value) {
520 return Inst(Opcode::UnpackHalf2x16, value);
521}
522
515F64 IREmitter::PackDouble2x32(const Value& vector) { 523F64 IREmitter::PackDouble2x32(const Value& vector) {
516 return Inst<F64>(Opcode::PackDouble2x32, vector); 524 return Inst<F64>(Opcode::PackDouble2x32, vector);
517} 525}