mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-11 10:39:58 +01:00
fix: don't rebind pipeline unless dirty
This commit is contained in:
parent
0444e43654
commit
bb425bf640
1 changed files with 75 additions and 72 deletions
|
@ -123,6 +123,8 @@ namespace Ryujinx.Graphics.Metal
|
|||
}
|
||||
|
||||
private void SetPipelineState(MTLRenderCommandEncoder renderCommandEncoder) {
|
||||
if (_currentState.Dirty.Pipeline)
|
||||
{
|
||||
var renderPipelineDescriptor = new MTLRenderPipelineDescriptor();
|
||||
|
||||
for (int i = 0; i < EncoderState.MaxColorAttachments; i++)
|
||||
|
@ -207,6 +209,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
_currentState.BlendColor.Blue,
|
||||
_currentState.BlendColor.Alpha);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateIndexBuffer(BufferRange buffer, IndexType type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue