Implement Depth Clamping (#1120)
* Implement Depth Clamping and add misc enums * Fix formatting
This commit is contained in:
parent
0a7c6caedf
commit
4960ab85f8
6 changed files with 60 additions and 3 deletions
|
@ -75,6 +75,7 @@ namespace Ryujinx.Graphics.Gpu.State
|
|||
VertexBufferInstanced = 0x620,
|
||||
FaceState = 0x646,
|
||||
ViewportTransformEnable = 0x64b,
|
||||
ViewVolumeClipControl = 0x64f,
|
||||
Clear = 0x674,
|
||||
RtColorMask = 0x680,
|
||||
ReportState = 0x6c0,
|
||||
|
|
12
Ryujinx.Graphics.Gpu/State/ViewVolumeClipControl.cs
Normal file
12
Ryujinx.Graphics.Gpu/State/ViewVolumeClipControl.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Gpu.State
|
||||
{
|
||||
[Flags]
|
||||
enum ViewVolumeClipControl
|
||||
{
|
||||
ForceDepthRangeZeroToOne = 1 << 0,
|
||||
DepthClampNear = 1 << 3,
|
||||
DepthClampFar = 1 << 4,
|
||||
}
|
||||
}
|
11
Ryujinx.Graphics.Gpu/State/YControl.cs
Normal file
11
Ryujinx.Graphics.Gpu/State/YControl.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Gpu.State
|
||||
{
|
||||
[Flags]
|
||||
enum YControl
|
||||
{
|
||||
NegateY = 1 << 0,
|
||||
TriangleRastFlip = 1 << 4
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue