aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/VertexAttribState.cs
blob: 0e327a75c440739f0c3fc2990c97a15c00689454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace Ryujinx.Graphics.Gpu.State
{
    struct VertexAttribState
    {
        public uint Attribute;

        public int UnpackBufferIndex()
        {
            return (int)(Attribute & 0x1f);
        }

        public int UnpackOffset()
        {
            return (int)((Attribute >> 7) & 0x3fff);
        }

        public uint UnpackFormat()
        {
            return Attribute & 0x3fe00000;
        }
    }
}