Implement Logical Operation registers and functionality (#1380)
* Implement Logical Operation registers and functionality. * Address Feedback 1
This commit is contained in:
parent
189c0c9c72
commit
f224769c49
7 changed files with 110 additions and 0 deletions
|
@ -252,6 +252,11 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
UpdateBlendState(state);
|
||||
}
|
||||
|
||||
if (state.QueryModified(MethodOffset.LogicOpState))
|
||||
{
|
||||
UpdateLogicOpState(state);
|
||||
}
|
||||
|
||||
CommitBindings();
|
||||
}
|
||||
|
||||
|
@ -875,6 +880,17 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates host logical operation state, based on guest state.
|
||||
/// </summary>
|
||||
/// <param name="state">Current GPU state</param>
|
||||
public void UpdateLogicOpState(GpuState state)
|
||||
{
|
||||
LogicalOpState logicOpState = state.Get<LogicalOpState>(MethodOffset.LogicOpState);
|
||||
|
||||
_context.Renderer.Pipeline.SetLogicOpState(logicOpState.Enable, logicOpState.LogicalOp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Storage buffer address and size information.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue