mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-19 07:00:54 -05:00
Clamp ScissorRect
This commit is contained in:
committed by
Evan Husted
parent
f79ebd1141
commit
96d884a15b
@@ -27,7 +27,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
|
||||
private MTLViewport[] _viewports = [];
|
||||
private MTLScissorRect[] _scissors = [];
|
||||
public readonly int ViewportCount => _viewports.Length;
|
||||
public readonly MTLViewport[] Viewports => _viewports;
|
||||
|
||||
public RenderEncoderState(MTLFunction vertexFunction, MTLFunction fragmentFunction, MTLDevice device)
|
||||
{
|
||||
@@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
_device = device;
|
||||
}
|
||||
|
||||
public unsafe readonly void SetEncoderState(MTLRenderCommandEncoder renderCommandEncoder, MTLRenderPassDescriptor descriptor, MTLVertexDescriptor vertexDescriptor)
|
||||
public unsafe void SetEncoderState(MTLRenderCommandEncoder renderCommandEncoder, MTLRenderPassDescriptor descriptor, MTLVertexDescriptor vertexDescriptor)
|
||||
{
|
||||
var renderPipelineDescriptor = new MTLRenderPipelineDescriptor
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user