using System.Runtime.InteropServices;
namespace Ryujinx.Graphics.Gpu.Shader.Cache.Definition
{
///
/// The header of a shader program in the guest cache.
///
[StructLayout(LayoutKind.Sequential, Pack = 0x1, Size = 0x10)]
struct GuestShaderCacheHeader
{
///
/// The count of shaders defining this program.
///
public byte Count;
///
/// The count of transform feedback data used in this program.
///
public byte TransformFeedbackCount;
///
/// Unused/reserved.
///
public ushort Reserved1;
///
/// Unused/reserved.
///
public ulong Reserved2;
///
/// Create a new guest shader cache header.
///
/// The count of shaders defining this program
/// The count of transform feedback data used in this program
public GuestShaderCacheHeader(byte count, byte transformFeedbackCount) : this()
{
Count = count;
TransformFeedbackCount = transformFeedbackCount;
}
}
}