Format
This commit is contained in:
parent
c0bb55cf5e
commit
009f791879
2 changed files with 4 additions and 2 deletions
|
@ -640,7 +640,8 @@ namespace Ryujinx.Graphics.Metal
|
|||
var layout = _vertexDescriptor.Layouts.Object((ulong)i);
|
||||
layout.Stride = (ulong)vertexBuffers[i].Stride;
|
||||
|
||||
_vertexBuffers[i] = new BufferInfo {
|
||||
_vertexBuffers[i] = new BufferInfo
|
||||
{
|
||||
Handle = vertexBuffers[i].Buffer.Handle.ToIntPtr(),
|
||||
Offset = vertexBuffers[i].Buffer.Offset
|
||||
};
|
||||
|
|
|
@ -56,7 +56,8 @@ namespace Ryujinx.Graphics.Metal
|
|||
info.Format == Format.R5G6B5Unorm)
|
||||
{
|
||||
(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 tempA = swizzleA;
|
||||
|
|
Loading…
Reference in a new issue