aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs
blob: a8bd2c925986b49bf9b97c02120063351b4e2421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Ryujinx.Graphics.Gpu.State
{
    struct VertexBufferState
    {
        public uint  Control;
        public GpuVa Address;
        public int   Divisor;

        public int UnpackStride()
        {
            return (int)(Control & 0xfff);
        }

        public bool UnpackEnable()
        {
            return (Control & (1 << 12)) != 0;
        }
    }
}