diff --git a/src/ComputeSharp.Shaders/Renderer/Models/Functions/FunctionInfo.cs b/src/ComputeSharp.Shaders/Renderer/Models/Functions/FunctionInfo.cs
index e0c38deb..3af27abe 100644
--- a/src/ComputeSharp.Shaders/Renderer/Models/Functions/FunctionInfo.cs
+++ b/src/ComputeSharp.Shaders/Renderer/Models/Functions/FunctionInfo.cs
@@ -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
///
public string FunctionName { get; }
+ ///
+ /// Gets the list of parameters for the current function
+ ///
+ public IReadOnlyList ParametersList { get; }
+
///
/// Gets the body of the current function
///
@@ -46,6 +52,7 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
/// The parameters of the function in the C# source
/// The return type of the current function
/// The name of the current function
+ /// The function parameters, if any
/// The current function
public FunctionInfo(
Type functionCsharpType,
@@ -53,6 +60,7 @@ namespace ComputeSharp.Shaders.Renderer.Models.Functions
string functionCsharpParameters,
string returnType,
string functionName,
+ IReadOnlyList 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;
}
}
diff --git a/src/ComputeSharp.Shaders/Renderer/Models/ShaderInfo.cs b/src/ComputeSharp.Shaders/Renderer/Models/ShaderInfo.cs
index 8dc33e8b..306dd3f7 100644
--- a/src/ComputeSharp.Shaders/Renderer/Models/ShaderInfo.cs
+++ b/src/ComputeSharp.Shaders/Renderer/Models/ShaderInfo.cs
@@ -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
{
///
- /// 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
///
public IReadOnlyList BuffersList { get; set; }
///
- /// 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
///
public IReadOnlyList FieldsList { get; set; }
@@ -45,5 +46,10 @@ namespace ComputeSharp.Shaders.Renderer.Models
/// Gets or sets the shader body to compile
///
public string ShaderBody { get; set; }
+
+ ///
+ /// Gets or sets the list of static functions used by the shader
+ ///
+ public IReadOnlyList FunctionsList { get; set; }
}
}