using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract; namespace ComputeSharp.Shaders.Renderer.Models.Fields { /// /// A that contains info on a read write buffer field /// public sealed class ReadWriteBufferFieldInfo : FieldInfoBase { /// /// Gets whether or not the current instance represents a read write buffer (always ) /// public bool IsReadWriteBuffer { get; } = true; /// /// Gets the index of the current read write buffer field /// public int ReadWriteBufferIndex { get; set; } /// /// 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 read write buffer field public ReadWriteBufferFieldInfo(string fieldType, string fieldName, int bufferIndex) : base(fieldType, fieldName) { ReadWriteBufferIndex = bufferIndex; } } }