WIP V2: Experimental: Metal backend #441

Merged
GreemDev merged 369 commits from new-metal into master 2024-12-24 06:55:16 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 36fe41bffd - Show all commits

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;