Code refactoring in the field info models

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-15 18:38:26 +02:00
1 親 98e5fe86d2
コミット a2e8eef126
9ファイル変更
+48 -45

検索条件に一致するファイルはありません

+3 -11
ファイルの表示
@@ -5,27 +5,19 @@ namespace ComputeSharp.Shaders.Renderer.Models.Fields
/// <summary>
/// A <see langword="class"/> that contains info on a read write buffer field
/// </summary>
internal sealed class ReadWriteBufferFieldInfo : FieldInfoBase
internal sealed class ReadWriteBufferFieldInfo : HlslBufferInfo
{
/// <summary>
/// Gets whether or not the current <see cref="FieldInfoBase"/> instance represents a read write buffer (always <see langword="true"/>)
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a read write buffer (always <see langword="true"/>)
/// </summary>
public bool IsReadWriteBuffer { get; } = true;
/// <summary>
/// Gets the index of the current read write buffer field
/// </summary>
public int ReadWriteBufferIndex { get; set; }
/// <summary>
/// Creates a new <see cref="ReadWriteBufferFieldInfo"/> instance with the specified parameters
/// </summary>
/// <param name="fieldType">The type of the current field</param>
/// <param name="fieldName">The name of the current field</param>
/// <param name="bufferIndex">The index of the current read write buffer field</param>
public ReadWriteBufferFieldInfo(string fieldType, string fieldName, int bufferIndex) : base(fieldType, fieldName)
{
ReadWriteBufferIndex = bufferIndex;
}
public ReadWriteBufferFieldInfo(string fieldType, string fieldName, int bufferIndex) : base(fieldType, fieldName, bufferIndex) { }
}
}