mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-20 09:21:41 +00:00
88593bf872
* Add detail of ZbcSetTableArguments This is a missing part of the #800 PR that cause an assert to be triggered in debug mode. Also, remove Fence in SurfaceFlinger as it's a duplicate of NvFence. * Fix critical issue in size checking of ioctl oops
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
struct ZbcColorArray
|
|
{
|
|
private uint element0;
|
|
private uint element1;
|
|
private uint element2;
|
|
private uint element3;
|
|
|
|
public uint this[int index]
|
|
{
|
|
get
|
|
{
|
|
if (index == 0)
|
|
{
|
|
return element0;
|
|
}
|
|
else if (index == 1)
|
|
{
|
|
return element1;
|
|
}
|
|
else if (index == 2)
|
|
{
|
|
return element2;
|
|
}
|
|
else if (index == 2)
|
|
{
|
|
return element3;
|
|
}
|
|
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
}
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
struct ZbcSetTableArguments
|
|
{
|
|
public ZbcColorArray ColorDs;
|
|
public ZbcColorArray ColorL2;
|
|
public uint Depth;
|
|
public uint Format;
|
|
public uint Type;
|
|
}
|
|
}
|