Minor code refactoring
このコミットが含まれているのは:
1 親
1d9b0a94e7
コミット
0ccb4edd13
5ファイル変更
+10
-10
検索条件に一致するファイルはありません
+3
-3
@@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a shader field
|
||||
/// </summary>
|
||||
public abstract class FieldInfo
|
||||
public abstract class FieldInfoBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the current field
|
||||
@@ -16,11 +16,11 @@
|
||||
public string FieldName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="FieldInfo"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="FieldInfoBase"/> 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)
|
||||
protected FieldInfoBase(string fieldType, string fieldName)
|
||||
{
|
||||
FieldType = fieldType;
|
||||
FieldName = fieldName;
|
||||
@@ -5,10 +5,10 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a constant buffer field
|
||||
/// </summary>
|
||||
public sealed class ConstantBufferFieldInfo : FieldInfo
|
||||
public sealed class ConstantBufferFieldInfo : FieldInfoBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a constant buffer (always <see langword="true"/>)
|
||||
/// Gets whether or not the current <see cref="FieldInfoBase"/> instance represents a constant buffer (always <see langword="true"/>)
|
||||
/// </summary>
|
||||
public bool IsConstantBuffer { get; } = true;
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a read write buffer field
|
||||
/// </summary>
|
||||
public sealed class ReadWriteBufferFieldInfo : FieldInfo
|
||||
public sealed class ReadWriteBufferFieldInfo : FieldInfoBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a read write buffer (always <see langword="true"/>)
|
||||
/// Gets whether or not the current <see cref="FieldInfoBase"/> instance represents a read write buffer (always <see langword="true"/>)
|
||||
/// </summary>
|
||||
public bool IsReadWriteBuffer { get; } = true;
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models.Fields
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a static scalar field
|
||||
/// </summary>
|
||||
public sealed class StaticScalarFieldInfo : FieldInfo
|
||||
public sealed class StaticScalarFieldInfo : FieldInfoBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a static scalar value (always <see langword="true"/>)
|
||||
/// Gets whether or not the current <see cref="FieldInfoBase"/> instance represents a static scalar value (always <see langword="true"/>)
|
||||
/// </summary>
|
||||
public bool IsStaticScalarField { get; } = true;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace DirectX12GameEngine.Shaders.Renderer.Models
|
||||
/// <summary>
|
||||
/// Gets the list of fields being present in the current shader
|
||||
/// </summary>
|
||||
public List<FieldInfo> FieldsList { get; } = new List<FieldInfo>();
|
||||
public List<FieldInfoBase> FieldsList { get; } = new List<FieldInfoBase>();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of threads in the X group
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする