using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.Gpu.Engine.Threed
{
///
/// Draw state.
///
class DrawState
{
///
/// First index to be used for the draw on the index buffer.
///
public int FirstIndex;
///
/// Number of indices to be used for the draw on the index buffer.
///
public int IndexCount;
///
/// Indicates if the next draw will be a indexed draw.
///
public bool DrawIndexed;
///
/// Indicates if the next draw will be a indirect draw.
///
public bool DrawIndirect;
///
/// Indicates if any of the currently used vertex shaders reads the instance ID.
///
public bool VsUsesInstanceId;
///
/// Indicates if any of the currently used vertex buffers is instanced.
///
public bool IsAnyVbInstanced;
///
/// Indicates that the draw is writing the base vertex, base instance and draw index to Constant Buffer 0.
///
public bool HasConstantBufferDrawParameters;
///
/// Primitive topology for the next draw.
///
public PrimitiveTopology Topology;
///
/// Index buffer data streamer for inline index buffer updates, such as those used in legacy OpenGL.
///
public IbStreamer IbStreamer = new IbStreamer();
}
}