mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-11 19:24:58 +00:00
spirv: Implement EmitIdentity
This commit is contained in:
parent
b5d7279d87
commit
3a59fffaa1
2 changed files with 3 additions and 3 deletions
|
@ -180,8 +180,8 @@ Id EmitSPIRV::EmitPhi(EmitContext& ctx, IR::Inst* inst) {
|
||||||
|
|
||||||
void EmitSPIRV::EmitVoid(EmitContext&) {}
|
void EmitSPIRV::EmitVoid(EmitContext&) {}
|
||||||
|
|
||||||
void EmitSPIRV::EmitIdentity(EmitContext&) {
|
Id EmitSPIRV::EmitIdentity(EmitContext& ctx, const IR::Value& value) {
|
||||||
throw NotImplementedException("SPIR-V Instruction");
|
return ctx.Def(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitSPIRV::EmitGetZeroFromOp(EmitContext&) {
|
void EmitSPIRV::EmitGetZeroFromOp(EmitContext&) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ private:
|
||||||
// Microinstruction emitters
|
// Microinstruction emitters
|
||||||
Id EmitPhi(EmitContext& ctx, IR::Inst* inst);
|
Id EmitPhi(EmitContext& ctx, IR::Inst* inst);
|
||||||
void EmitVoid(EmitContext& ctx);
|
void EmitVoid(EmitContext& ctx);
|
||||||
void EmitIdentity(EmitContext& ctx);
|
Id EmitIdentity(EmitContext& ctx, const IR::Value& value);
|
||||||
void EmitBranch(EmitContext& ctx, IR::Block* label);
|
void EmitBranch(EmitContext& ctx, IR::Block* label);
|
||||||
void EmitBranchConditional(EmitContext& ctx, Id condition, IR::Block* true_label,
|
void EmitBranchConditional(EmitContext& ctx, Id condition, IR::Block* true_label,
|
||||||
IR::Block* false_label);
|
IR::Block* false_label);
|
||||||
|
|
Loading…
Reference in a new issue