ファイル
ComputeSharp/src/ComputeSharp.Shaders/Renderer/Models/ShaderInfo.cs
T

55 行
1.8 KiB
C#

using System.Collections.Generic;
using ComputeSharp.Shaders.Renderer.Models.Fields;
using ComputeSharp.Shaders.Renderer.Models.Fields.Abstract;
#pragma warning disable CS8618 // Non-nullable field is uninitialized
namespace ComputeSharp.Shaders.Renderer.Models
{
/// <summary>
/// A <see langword="class"/> that contains info to render a shader source to compile
/// </summary>
internal sealed class ShaderInfo
{
/// <summary>
/// Gets the text indicating a generic type, which can't be escaped in mustache
/// </summary>
public string T { get; } = "<T>";
/// <summary>
/// Gets 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
/// </summary>
public IReadOnlyList<CapturedFieldInfo> FieldsList { get; set; }
/// <summary>
/// Gets or sets the number of threads in the X group
/// </summary>
public int NumThreadsX { get; set; }
/// <summary>
/// Gets or sets the number of threads in the Y group
/// </summary>
public int NumThreadsY { get; set; }
/// <summary>
/// Gets or sets the number of threads in the Z group
/// </summary>
public int NumThreadsZ { get; set; }
/// <summary>
/// Gets or sets the name for the threads id variable used in the shader
/// </summary>
public string ThreadsIdsVariableName { get; set; }
/// <summary>
/// Gets or sets the shader body to compile
/// </summary>
public string ShaderBody { get; set; }
}
}