using System.Runtime.InteropServices; namespace Ryujinx.Graphics.Gpu.Shader.Cache.Definition { /// /// Header for transform feedback. /// [StructLayout(LayoutKind.Sequential, Pack = 1, Size = 0x10)] struct GuestShaderCacheTransformFeedbackHeader { /// /// The buffer index of the transform feedback. /// public int BufferIndex; /// /// The stride of the transform feedback. /// public int Stride; /// /// The length of the varying location buffer of the transform feedback. /// public int VaryingLocationsLength; /// /// Reserved/unused. /// public int Reserved1; public GuestShaderCacheTransformFeedbackHeader(int bufferIndex, int stride, int varyingLocationsLength) : this() { BufferIndex = bufferIndex; Stride = stride; VaryingLocationsLength = varyingLocationsLength; } } }