aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Shader/TransformFeedbackDescriptor.cs
blob: eaa889cc5a41e04e0b4b4a8fc80385dbc1693aaf (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.Gpu.Shader
{
    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));
        }
    }
}