Implement Fsqrt for SPIR-V
This commit is contained in:
parent
5cd6ce87b7
commit
e29af7a90b
1 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
{ ShaderIrInst.Frcp, GetFrcpExpr },
|
{ ShaderIrInst.Frcp, GetFrcpExpr },
|
||||||
{ ShaderIrInst.Frsq, GetFrsqExpr },
|
{ ShaderIrInst.Frsq, GetFrsqExpr },
|
||||||
{ ShaderIrInst.Fsin, GetFsinExpr },
|
{ ShaderIrInst.Fsin, GetFsinExpr },
|
||||||
|
{ ShaderIrInst.Fsqrt, GetFsqrtExpr },
|
||||||
{ ShaderIrInst.Ftos, GetFtosExpr },
|
{ ShaderIrInst.Ftos, GetFtosExpr },
|
||||||
{ ShaderIrInst.Ftou, GetFtouExpr },
|
{ ShaderIrInst.Ftou, GetFtouExpr },
|
||||||
{ ShaderIrInst.Kil, GetKilExpr },
|
{ ShaderIrInst.Kil, GetKilExpr },
|
||||||
|
@ -1616,6 +1617,11 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
TypeFloat,
|
TypeFloat,
|
||||||
GetOperExpr(Op, Op.OperandA));
|
GetOperExpr(Op, Op.OperandA));
|
||||||
|
|
||||||
|
private Instruction GetFsqrtExpr(ShaderIrOp Op)
|
||||||
|
=> Glsl450.Sqrt(
|
||||||
|
TypeFloat,
|
||||||
|
GetOperExpr(Op, Op.OperandA));
|
||||||
|
|
||||||
private Instruction GetKilExpr(ShaderIrOp Op)
|
private Instruction GetKilExpr(ShaderIrOp Op)
|
||||||
=> new OpKill();
|
=> new OpKill();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue