diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-03-15 04:54:43 -0300 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:23 -0400 |
commit | 17a82b56d74afcebaad78ce4754d8ee99ea66f93 (patch) | |
tree | 5a4a29a65ee09599daa3b9c4a005070286d6b901 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | 71f96fa6366dc6dd306a953bca1b958fb32bc55a (diff) |
shader: Implement TEXS
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 8 |
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 556961fa42..d94596ee91 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) { return Inst(Opcode::UnpackFloat2x16, value); } +U32 IREmitter::PackHalf2x16(const Value& vector) { + return Inst<U32>(Opcode::PackHalf2x16, vector); +} + +Value IREmitter::UnpackHalf2x16(const U32& value) { + return Inst(Opcode::UnpackHalf2x16, value); +} + F64 IREmitter::PackDouble2x32(const Value& vector) { return Inst<F64>(Opcode::PackDouble2x32, vector); } |