mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 03:12:26 -07:00
Set scissors & viewports
This commit is contained in:
committed by
Isaac Marovitz
parent
a9db9f5b27
commit
316fea1fa9
@@ -38,7 +38,7 @@
|
|||||||
<PackageVersion Include="Ryujinx.SDL2-CS" Version="2.30.0-build32" />
|
<PackageVersion Include="Ryujinx.SDL2-CS" Version="2.30.0-build32" />
|
||||||
<PackageVersion Include="securifybv.ShellLink" Version="0.1.0" />
|
<PackageVersion Include="securifybv.ShellLink" Version="0.1.0" />
|
||||||
<PackageVersion Include="shaderc.net" Version="0.1.0" />
|
<PackageVersion Include="shaderc.net" Version="0.1.0" />
|
||||||
<PackageVersion Include="SharpMetal" Version="1.0.0-preview11" />
|
<PackageVersion Include="SharpMetal" Version="1.0.0-preview12" />
|
||||||
<PackageVersion Include="SharpZipLib" Version="1.4.2" />
|
<PackageVersion Include="SharpZipLib" Version="1.4.2" />
|
||||||
<PackageVersion Include="Silk.NET.Vulkan" Version="2.21.0" />
|
<PackageVersion Include="Silk.NET.Vulkan" Version="2.21.0" />
|
||||||
<PackageVersion Include="Silk.NET.Vulkan.Extensions.EXT" Version="2.21.0" />
|
<PackageVersion Include="Silk.NET.Vulkan.Extensions.EXT" Version="2.21.0" />
|
||||||
|
@@ -521,11 +521,8 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
fixed (MTLScissorRect* pMtlScissorRects = mtlScissorRects)
|
fixed (MTLScissorRect* pMtlScissorRects = mtlScissorRects)
|
||||||
{
|
{
|
||||||
// TODO: Fix this function which currently wont accept pointer as intended
|
var renderCommandEncoder = GetOrCreateRenderEncoder();
|
||||||
if (_currentEncoderType == EncoderType.Render)
|
renderCommandEncoder.SetScissorRects((IntPtr)pMtlScissorRects, (ulong)regions.Length);
|
||||||
{
|
|
||||||
// new MTLRenderCommandEncoder(_currentEncoder.Value).SetScissorRects(pMtlScissorRects, (ulong)regions.Length);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -670,11 +667,8 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
fixed (MTLViewport* pMtlViewports = mtlViewports)
|
fixed (MTLViewport* pMtlViewports = mtlViewports)
|
||||||
{
|
{
|
||||||
// TODO: Fix this function which currently wont accept pointer as intended
|
var renderCommandEncoder = GetOrCreateRenderEncoder();
|
||||||
if (_currentEncoderType == EncoderType.Render)
|
renderCommandEncoder.SetViewports((IntPtr)pMtlViewports, (ulong)viewports.Length);
|
||||||
{
|
|
||||||
// new MTLRenderCommandEncoder(_currentEncoder.Value).SetViewports(pMtlViewports, (ulong)regions.Length);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user