Minor code refactoring

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-11 16:13:02 +02:00
1 親 79dbe5ed67
コミット 28a843257c
4ファイル変更
+45 -3

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

+12 -3
ファイルの表示
@@ -1,6 +1,4 @@
#pragma warning disable CS8618 // Non-nullable field is uninitialized
namespace DirectX12GameEngine.Shaders.Renderer.Models.Abstract
namespace DirectX12GameEngine.Shaders.Renderer.Models.Abstract
{
/// <summary>
/// A <see langword="class"/> that contains info on a shader field
@@ -16,5 +14,16 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Abstract
/// Gets or sets the name to use for the current field
/// </summary>
public string FieldName { get; set; }
/// <summary>
/// Creates a new <see cref="FieldInfo"/> 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>
protected FieldInfo(string fieldType, string fieldName)
{
FieldType = fieldType;
FieldName = fieldName;
}
}
}
+11
ファイルの表示
@@ -16,5 +16,16 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
/// Gets the index of the current constant buffer field
/// </summary>
public int ConstantBufferIndex { get; set; }
/// <summary>
/// Creates a new <see cref="ConstantBufferFieldInfo"/> 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 constant buffer field</param>
public ConstantBufferFieldInfo(string fieldType, string fieldName, int bufferIndex) : base(fieldType, fieldName)
{
ConstantBufferIndex = bufferIndex;
}
}
}
+11
ファイルの表示
@@ -16,5 +16,16 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
/// 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;
}
}
}
+11
ファイルの表示
@@ -16,5 +16,16 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
/// Gets or sets the value to set for the current field
/// </summary>
public object FieldValue { get; set; }
/// <summary>
/// Creates a new <see cref="StaticScalarFieldInfo"/> 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="fieldValue">The static value to assign to the current field</param>
public StaticScalarFieldInfo(string fieldType, string fieldName, object fieldValue) : base(fieldType, fieldName)
{
FieldValue = fieldValue;
}
}
}