namespace UnityEditor.Rendering.Universal
{
///
/// A structure needed for the conversion part of the converter.
/// This holds the item that is being converted.
///
internal struct RunItemContext
{
ConverterItemInfo m_Item;
/// The item that will go through the conversion code.
public ConverterItemInfo item => m_Item;
/// A bool to set if this item failed to convert.
public bool didFail { get; set; }
/// Info to store data to be shown in the UI.
public string info { get; set; }
/// A bool to set if this item failed to convert.
internal bool hasConverted { get; set; }
/// A bool set to true if the converter is running in batch mode.
public bool isBatchMode { get; internal set; }
/// Constructor for the RunItemContext.
public RunItemContext(ConverterItemInfo item)
{
m_Item = item;
didFail = false;
info = "";
hasConverted = false;
isBatchMode = false;
}
}
}