Remove header from generated HLSL sources

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-22 17:36:02 +01:00
1 親 ace48cb69d
コミット 5127ede784
9ファイル変更
-141

検索条件に一致するファイルはありません

@@ -480,8 +480,6 @@ partial class D2DPixelShaderDescriptorGenerator
{
using IndentedTextWriter writer = new();
HlslSourceSyntaxProcessor.WriteHeader(writer);
// Shader metadata
writer.WriteLine($"#define D2D_INPUT_COUNT {inputCount}");
@@ -8,23 +8,6 @@ namespace ComputeSharp.SourceGeneration.SyntaxProcessors;
/// </summary>
internal static class HlslSourceSyntaxProcessor
{
/// <summary>
/// Writes the header included at the top of each generated HLSL shader.
/// </summary>
/// <param name="writer">The <see cref="IndentedTextWriter"/> instance to write into.</param>
public static void WriteHeader(IndentedTextWriter writer)
{
writer.WriteLine("""
// ================================================
// AUTO GENERATED
// ================================================
// This shader was created by ComputeSharp.
// See: https://github.com/Sergio0694/ComputeSharp.
""", isMultiline: true);
writer.WriteLine();
}
/// <summary>
/// Writes the top declarations in each generated HLSL shader:
/// <list type="bullet">
-2
ファイルの表示
@@ -521,8 +521,6 @@ partial class ComputeShaderDescriptorGenerator
{
using IndentedTextWriter writer = new();
HlslSourceSyntaxProcessor.WriteHeader(writer);
// Group size constants
writer.WriteLine($"#define __GroupSize__get_X {threadsX}");
writer.WriteLine($"#define __GroupSize__get_Y {threadsY}");