Fix 3 graphics related issues (#180)
* Fix 3 graphics related bugs * OGLShader shouldn't be public (yet)
This commit is contained in:
parent
5182361f4b
commit
c26ddd6259
8 changed files with 40 additions and 14 deletions
|
@ -80,6 +80,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
{ ShaderIrInst.Frcp, GetFrcpExpr },
|
||||
{ ShaderIrInst.Frsq, GetFrsqExpr },
|
||||
{ ShaderIrInst.Fsin, GetFsinExpr },
|
||||
{ ShaderIrInst.Fsqrt, GetFsqrtExpr },
|
||||
{ ShaderIrInst.Ftos, GetFtosExpr },
|
||||
{ ShaderIrInst.Ftou, GetFtouExpr },
|
||||
{ ShaderIrInst.Ipa, GetIpaExpr },
|
||||
|
@ -716,6 +717,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
|
||||
private string GetFsinExpr(ShaderIrOp Op) => GetUnaryCall(Op, "sin");
|
||||
|
||||
private string GetFsqrtExpr(ShaderIrOp Op) => GetUnaryCall(Op, "sqrt");
|
||||
|
||||
private string GetFtosExpr(ShaderIrOp Op)
|
||||
{
|
||||
return "int(" + GetOperExpr(Op, Op.OperandA) + ")";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue