Removed unnecessary static field model
このコミットが含まれているのは:
1 親
6a34a86aa5
コミット
508cdc3911
2ファイル変更
-35
検索条件に一致するファイルはありません
@@ -1,31 +0,0 @@
|
||||
using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
|
||||
|
||||
namespace ComputeSharp.Shaders.Renderer.Models.Fields
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that contains info on a static scalar field
|
||||
/// </summary>
|
||||
internal sealed class StaticScalarFieldInfo : FieldInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets whether or not the current <see cref="FieldInfo"/> instance represents a static scalar value (always <see langword="true"/>)
|
||||
/// </summary>
|
||||
public bool IsStaticScalarField { get; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,4 @@
|
||||
{{#FieldsList}}
|
||||
{{!Static scalar}}
|
||||
{{#IsStaticScalarField}}
|
||||
static {{&FieldType}} {{FieldName}} = {{FieldValue}};
|
||||
{{/IsStaticScalarField}}
|
||||
{{!Constant buffer}}
|
||||
{{#IsConstantBuffer}}
|
||||
cbuffer {{FieldName}}Buffer : register(b{{BufferIndex}})
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする