mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-03 06:52:11 +01:00
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);
|
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
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue