using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.Gpu.Shader
{
/// <summary>
/// State used by the <see cref="GpuAccessor"/>.
/// </summary>
struct GpuAccessorState
/// GPU virtual address of the texture pool.
public ulong TexturePoolGpuVa { get; }
/// Maximum ID of the texture pool.
public int TexturePoolMaximumId { get; }
/// Constant buffer slot where the texture handles are located.
public int TextureBufferIndex { get; }
/// Early Z force enable.
public bool EarlyZForce { get; }
/// Primitive topology of current draw.
public PrimitiveTopology Topology { get; }
/// Creates a new instance of the GPU accessor state.
/// <param name="texturePoolGpuVa">GPU virtual address of the texture pool</param>
/// <param name="texturePoolMaximumId">Maximum ID of the texture pool</param>
/// <param name="textureBufferIndex">Constant buffer slot where the texture handles are located</param>
/// <param name="earlyZForce">Early Z force enable</param>
/// <param name="topology">Primitive topology</param>
public GpuAccessorState(
ulong texturePoolGpuVa,
int texturePoolMaximumId,
int textureBufferIndex,
bool earlyZForce,
PrimitiveTopology topology)
TexturePoolGpuVa = texturePoolGpuVa;
TexturePoolMaximumId = texturePoolMaximumId;
TextureBufferIndex = textureBufferIndex;
EarlyZForce = earlyZForce;
Topology = topology;
}