Make dotnet format happy

This commit is contained in:
Isaac Marovitz 2024-07-19 19:45:09 +01:00
parent a8794b2d58
commit a32b619f5c
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
2 changed files with 3 additions and 11 deletions

View File

@ -6,7 +6,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
internal struct IndexBufferState readonly internal struct IndexBufferState
{ {
public static IndexBufferState Null => new(BufferHandle.Null, 0, 0); public static IndexBufferState Null => new(BufferHandle.Null, 0, 0);
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.Metal
private readonly BufferHandle _handle; private readonly BufferHandle _handle;
public IndexBufferState(BufferHandle handle, int offset, int size, IndexType type) public IndexBufferState(BufferHandle handle, int offset, int size, IndexType type = IndexType.UInt)
{ {
_handle = handle; _handle = handle;
_offset = offset; _offset = offset;
@ -24,14 +24,6 @@ namespace Ryujinx.Graphics.Metal
_type = type; _type = type;
} }
public IndexBufferState(BufferHandle handle, int offset, int size)
{
_handle = handle;
_offset = offset;
_size = size;
_type = IndexType.UInt;
}
public (MTLBuffer, int, MTLIndexType) GetIndexBuffer(MetalRenderer renderer, CommandBufferScoped cbs) public (MTLBuffer, int, MTLIndexType) GetIndexBuffer(MetalRenderer renderer, CommandBufferScoped cbs)
{ {
Auto<DisposableBuffer> autoBuffer; Auto<DisposableBuffer> autoBuffer;

View File

@ -6,7 +6,7 @@ using System.Runtime.Versioning;
namespace Ryujinx.Graphics.Metal namespace Ryujinx.Graphics.Metal
{ {
[SupportedOSPlatform("macos")] [SupportedOSPlatform("macos")]
internal struct VertexBufferState readonly internal struct VertexBufferState
{ {
public static VertexBufferState Null => new(BufferHandle.Null, 0, 0, 0); public static VertexBufferState Null => new(BufferHandle.Null, 0, 0, 0);