Code refactoring in the field info models
このコミットが含まれているのは:
1 親
98e5fe86d2
コミット
a2e8eef126
9ファイル変更
+48
-45
検索条件に一致するファイルはありません
@@ -5,10 +5,10 @@ namespace ComputeSharp.Shaders.Renderer.Models.Fields
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a constant buffer field
|
||||
/// </summary>
|
||||
internal sealed class ConstantBufferFieldInfo : FieldInfoBase
|
||||
internal sealed class ConstantBufferFieldInfo : HlslBufferInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets whether or not the current <see cref="FieldInfoBase"/> instance represents a constant buffer (always <see langword="true"/>)
|
||||
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a constant buffer (always <see langword="true"/>)
|
||||
/// </summary>
|
||||
public bool IsConstantBuffer { get; } = true;
|
||||
|
||||
@@ -17,11 +17,6 @@ namespace ComputeSharp.Shaders.Renderer.Models.Fields
|
||||
/// </summary>
|
||||
public bool IsSingleValue { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of the current constant buffer field
|
||||
/// </summary>
|
||||
public int ConstantBufferIndex { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ConstantBufferFieldInfo"/> instance with the specified parameters
|
||||
/// </summary>
|
||||
@@ -29,9 +24,8 @@ namespace ComputeSharp.Shaders.Renderer.Models.Fields
|
||||
/// <param name="fieldName">The name of the current field</param>
|
||||
/// <param name="bufferIndex">The index of the current constant buffer field</param>
|
||||
/// <param name="singleValue">Whether or not this constant buffer actually contains a single, explicit variable</param>
|
||||
public ConstantBufferFieldInfo(string fieldType, string fieldName, int bufferIndex, bool singleValue) : base(fieldType, fieldName)
|
||||
public ConstantBufferFieldInfo(string fieldType, string fieldName, int bufferIndex, bool singleValue) : base(fieldType, fieldName, bufferIndex)
|
||||
{
|
||||
ConstantBufferIndex = bufferIndex;
|
||||
IsSingleValue = singleValue;
|
||||
}
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする