mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 04:35:46 +00:00
Make dotnet format happy
This commit is contained in:
parent
1287098b8b
commit
eb2dae561f
2 changed files with 3 additions and 11 deletions
|
@ -6,7 +6,7 @@ using System.Runtime.Versioning;
|
|||
namespace Ryujinx.Graphics.Metal
|
||||
{
|
||||
[SupportedOSPlatform("macos")]
|
||||
internal struct IndexBufferState
|
||||
readonly internal struct IndexBufferState
|
||||
{
|
||||
public static IndexBufferState Null => new(BufferHandle.Null, 0, 0);
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
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;
|
||||
_offset = offset;
|
||||
|
@ -24,14 +24,6 @@ namespace Ryujinx.Graphics.Metal
|
|||
_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)
|
||||
{
|
||||
Auto<DisposableBuffer> autoBuffer;
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Runtime.Versioning;
|
|||
namespace Ryujinx.Graphics.Metal
|
||||
{
|
||||
[SupportedOSPlatform("macos")]
|
||||
internal struct VertexBufferState
|
||||
readonly internal struct VertexBufferState
|
||||
{
|
||||
public static VertexBufferState Null => new(BufferHandle.Null, 0, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue