aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/GalVertexAttrib.cs
blob: fa9a391f71af3989c053fa39a6855e2f2e20529e (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
34
35
using System;

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 IntPtr Pointer { 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,
            IntPtr              Pointer,
            GalVertexAttribSize Size,
            GalVertexAttribType Type,
            bool                IsBgra)
        {
            this.Index   = Index;
            this.IsConst = IsConst;
            this.Pointer = Pointer;
            this.Offset  = Offset;
            this.Size    = Size;
            this.Type    = Type;
            this.IsBgra  = IsBgra;
        }
    }
}