mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-12 03:00:00 +01:00
Format
This commit is contained in:
parent
722aa4e45d
commit
32db6cc281
1 changed files with 6 additions and 2 deletions
|
@ -531,7 +531,10 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
int maxScissors = Math.Min(regions.Length, _renderEncoderState.ViewportCount);
|
int maxScissors = Math.Min(regions.Length, _renderEncoderState.ViewportCount);
|
||||||
|
|
||||||
if (maxScissors == 0) { return; }
|
if (maxScissors == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var mtlScissorRects = new MTLScissorRect[maxScissors];
|
var mtlScissorRects = new MTLScissorRect[maxScissors];
|
||||||
|
|
||||||
|
@ -549,7 +552,8 @@ namespace Ryujinx.Graphics.Metal
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderEncoderState.UpdateScissors(mtlScissorRects);
|
_renderEncoderState.UpdateScissors(mtlScissorRects);
|
||||||
if (_currentEncoderType == EncoderType.Render) {
|
if (_currentEncoderType == EncoderType.Render)
|
||||||
|
{
|
||||||
fixed (MTLScissorRect* pMtlScissorRects = mtlScissorRects)
|
fixed (MTLScissorRect* pMtlScissorRects = mtlScissorRects)
|
||||||
{
|
{
|
||||||
var renderCommandEncoder = GetOrCreateRenderEncoder();
|
var renderCommandEncoder = GetOrCreateRenderEncoder();
|
||||||
|
|
Loading…
Reference in a new issue