Remove leftover code in HlslBytecode

このコミットが含まれているのは:
Sergio Pedri committed 2024-01-07 20:30:11 +01:00
1 親 702167669a
コミット d1578bb997
2ファイル変更
+2 -5

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

+1 -4
ファイルの表示
@@ -1,6 +1,4 @@
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
using ComputeSharp.SourceGeneration.Models;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGenerators;
@@ -16,10 +14,9 @@ partial class ComputeShaderDescriptorGenerator
/// <summary>
/// Extracts the compile options for the current shader.
/// </summary>
/// <param name="diagnostics">The collection of produced <see cref="DiagnosticInfo"/> instances.</param>
/// <param name="structDeclarationSymbol">The input <see cref="INamedTypeSymbol"/> instance to process.</param>
/// <returns>The requested compile options to use to compile the shader, if present.</returns>
public static CompileOptions GetCompileOptions(ImmutableArrayBuilder<DiagnosticInfo> diagnostics, INamedTypeSymbol structDeclarationSymbol)
public static CompileOptions GetCompileOptions(INamedTypeSymbol structDeclarationSymbol)
{
// If a [CompileOptions] annotation is present, return the explicit options
if (structDeclarationSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.CompileOptionsAttribute", out AttributeData? attributeData) ||
+1 -1
ファイルの表示
@@ -109,7 +109,7 @@ public sealed partial class ComputeShaderDescriptorGenerator : IIncrementalGener
token.ThrowIfCancellationRequested();
// Get the compile options as well
CompileOptions compileOptions = HlslBytecode.GetCompileOptions(diagnostics, typeSymbol);
CompileOptions compileOptions = HlslBytecode.GetCompileOptions(typeSymbol);
token.ThrowIfCancellationRequested();