aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Shader/Cache/Definition/GuestShaderCacheTransformFeedbackHeader.cs
blob: 18cfdf554bad2b95ca82021dc6efcb90a08418cf (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
36
37
38
using System.Runtime.InteropServices;

namespace Ryujinx.Graphics.Gpu.Shader.Cache.Definition
{
    /// <summary>
    /// Header for transform feedback.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, Size = 0x10)]
    struct GuestShaderCacheTransformFeedbackHeader
    {
        /// <summary>
        /// The buffer index of the transform feedback.
        /// </summary>
        public int BufferIndex;

        /// <summary>
        /// The stride of the transform feedback.
        /// </summary>
        public int Stride;

        /// <summary>
        /// The length of the varying location buffer of the transform feedback.
        /// </summary>
        public int VaryingLocationsLength;

        /// <summary>
        /// Reserved/unused.
        /// </summary>
        public int Reserved1;

        public GuestShaderCacheTransformFeedbackHeader(int bufferIndex, int stride, int varyingLocationsLength) : this()
        {
            BufferIndex = bufferIndex;
            Stride = stride;
            VaryingLocationsLength = varyingLocationsLength;
        }
    }
}