using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
namespace ComputeSharp.Shaders.Renderer.Models.Fields
{
///
/// A that contains info on a constant buffer field
///
internal sealed class ConstantBufferFieldInfo : HlslBufferInfo
{
///
/// Gets whether or not the current instance represents a constant buffer (always )
///
public bool IsConstantBuffer { get; } = true;
///
/// Gets whether or not this constant buffer actually contains a single, explicit variable
///
public bool IsSingleValue { get; }
///
/// Creates a new instance with the specified parameters
///
/// The type of the current field
/// The name of the current field
/// The index of the current constant buffer field
/// Whether or not this constant buffer actually contains a single, explicit variable
public ConstantBufferFieldInfo(string fieldType, string fieldName, int bufferIndex, bool singleValue) : base(fieldType, fieldName, bufferIndex)
{
IsSingleValue = singleValue;
}
}
}