mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Copy IR instruction
This commit is contained in:
parent
bd3371bdfb
commit
ed5da0263c
@ -1619,4 +1619,9 @@ void IREmitter::EmitPrimitive() {
|
|||||||
Inst(Opcode::EmitPrimitive);
|
Inst(Opcode::EmitPrimitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IR::Inst* IREmitter::CopyInst(const IR::Inst& inst) {
|
||||||
|
auto it{block->PrependNewInst(insertion_point, inst)};
|
||||||
|
return &*it;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Shader::IR
|
} // namespace Shader::IR
|
||||||
|
@ -321,6 +321,8 @@ public:
|
|||||||
void EmitVertex();
|
void EmitVertex();
|
||||||
void EmitPrimitive();
|
void EmitPrimitive();
|
||||||
|
|
||||||
|
[[nodiscard]] Inst* CopyInst(const Inst& inst);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IR::Block::iterator insertion_point;
|
IR::Block::iterator insertion_point;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user