aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/GalVertexAttrib.cs
blob: feca5aea33068a48b2d5320df307fbe073e70e39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace Ryujinx.Graphics.Gal
{
    public struct GalVertexAttrib
    {
        public int    Index   { get; private set; }
        public bool   IsConst { get; private set; }
        public int    Offset  { get; private set; }
        public byte[] Data    { get; private set; }

        public GalVertexAttribSize Size { get; private set; }
        public GalVertexAttribType Type { get; private set; }

        public bool IsBgra { get; private set; }

        public GalVertexAttrib(
            int                 index,
            bool                isConst,
            int                 offset,
            byte[]              data,
            GalVertexAttribSize size,
            GalVertexAttribType type,
            bool                isBgra)
        {
            Index   = index;
            IsConst = isConst;
            Data    = data;
            Offset  = offset;
            Size    = size;
            Type    = type;
            IsBgra  = isBgra;
        }
    }
}