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 HostShaderCacheHeader
{
///
/// The count of shaders defining this program.
///
public byte Count;
///
/// Unused/reserved.
///
public byte Reserved1;
///
/// Unused/reserved.
///
public ushort Reserved2;
///
/// Size of the shader binary.
///
public int CodeSize;
///
/// Create a new host shader cache header.
///
/// The count of shaders defining this program
/// The size of the shader binary
public HostShaderCacheHeader(byte count, int codeSize) : this()
{
Count = count;
CodeSize = codeSize;
}
}
}