Fixed mustache models
このコミットが含まれているのは:
1 親
337be904a3
コミット
817436f88c
2ファイル変更
+17
-2
検索条件に一致するファイルはありません
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ComputeSharp.Shaders.Extensions;
|
||||
|
||||
namespace ComputeSharp.Shaders.Renderer.Models.Functions
|
||||
@@ -33,6 +34,11 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
|
||||
/// </summary>
|
||||
public string FunctionName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of parameters for the current function
|
||||
/// </summary>
|
||||
public IReadOnlyList<ParameterInfo> ParametersList { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the body of the current function
|
||||
/// </summary>
|
||||
@@ -46,6 +52,7 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
|
||||
/// <param name="functionCsharpParameters">The parameters of the function in the C# source</param>
|
||||
/// <param name="returnType">The return type of the current function</param>
|
||||
/// <param name="functionName">The name of the current function</param>
|
||||
/// <param name="parameters">The function parameters, if any</param>
|
||||
/// <param name="functionBody">The current function</param>
|
||||
public FunctionInfo(
|
||||
Type functionCsharpType,
|
||||
@@ -53,6 +60,7 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
|
||||
string functionCsharpParameters,
|
||||
string returnType,
|
||||
string functionName,
|
||||
IReadOnlyList<ParameterInfo> parameters,
|
||||
string functionBody)
|
||||
{
|
||||
FunctionCsharpReturnType = functionCsharpType.ToFriendlyString();
|
||||
@@ -60,6 +68,7 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
|
||||
FunctionCsharpParameters = functionCsharpParameters;
|
||||
ReturnType = returnType;
|
||||
FunctionName = functionName;
|
||||
ParametersList = parameters;
|
||||
FunctionBody = functionBody;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using ComputeSharp.Shaders.Renderer.Models.Fields;
|
||||
using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
|
||||
using ComputeSharp.Shaders.Renderer.Models.Functions;
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field is uninitialized
|
||||
|
||||
@@ -12,12 +13,12 @@ namespace ComputeSharp.Shaders.Renderer.Models
|
||||
internal sealed class ShaderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the list of captured buffers being present in the current shader
|
||||
/// Gets or sets the list of captured buffers being present in the current shader
|
||||
/// </summary>
|
||||
public IReadOnlyList<HlslBufferInfo> BuffersList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the list of captured variables being present in the current shader
|
||||
/// Gets or sets the list of captured variables being present in the current shader
|
||||
/// </summary>
|
||||
public IReadOnlyList<CapturedFieldInfo> FieldsList { get; set; }
|
||||
|
||||
@@ -45,5 +46,10 @@ namespace ComputeSharp.Shaders.Renderer.Models
|
||||
/// Gets or sets the shader body to compile
|
||||
/// </summary>
|
||||
public string ShaderBody { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the list of static functions used by the shader
|
||||
/// </summary>
|
||||
public IReadOnlyList<FunctionInfo> FunctionsList { get; set; }
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする