This commit is contained in:
Isaac Marovitz 2024-03-19 23:09:17 -04:00 committed by Isaac Marovitz
parent c0bb55cf5e
commit 009f791879
2 changed files with 4 additions and 2 deletions

View file

@ -640,7 +640,8 @@ namespace Ryujinx.Graphics.Metal
var layout = _vertexDescriptor.Layouts.Object((ulong)i); var layout = _vertexDescriptor.Layouts.Object((ulong)i);
layout.Stride = (ulong)vertexBuffers[i].Stride; layout.Stride = (ulong)vertexBuffers[i].Stride;
_vertexBuffers[i] = new BufferInfo { _vertexBuffers[i] = new BufferInfo
{
Handle = vertexBuffers[i].Buffer.Handle.ToIntPtr(), Handle = vertexBuffers[i].Buffer.Handle.ToIntPtr(),
Offset = vertexBuffers[i].Buffer.Offset Offset = vertexBuffers[i].Buffer.Offset
}; };

View file

@ -56,7 +56,8 @@ namespace Ryujinx.Graphics.Metal
info.Format == Format.R5G6B5Unorm) info.Format == Format.R5G6B5Unorm)
{ {
(swizzleB, swizzleR) = (swizzleR, swizzleB); (swizzleB, swizzleR) = (swizzleR, swizzleB);
} else if (descriptor.PixelFormat == MTLPixelFormat.ABGR4Unorm || info.Format == Format.A1B5G5R5Unorm) }
else if (descriptor.PixelFormat == MTLPixelFormat.ABGR4Unorm || info.Format == Format.A1B5G5R5Unorm)
{ {
var tempB = swizzleB; var tempB = swizzleB;
var tempA = swizzleA; var tempA = swizzleA;