aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/TransformFeedbackDescriptor.cs
blob: 690b9108ed697481fd58d8d31293e357abd2bdbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;

namespace Ryujinx.Graphics.GAL
{
    public struct TransformFeedbackDescriptor
    {
        public int BufferIndex { get; }
        public int Stride      { get; }

        public byte[] VaryingLocations { get; }

        public TransformFeedbackDescriptor(int bufferIndex, int stride, byte[] varyingLocations)
        {
            BufferIndex      = bufferIndex;
            Stride           = stride;
            VaryingLocations = varyingLocations ?? throw new ArgumentNullException(nameof(varyingLocations));
        }
    }
}