Switch D3D12 generator to use FAWMN on new attribute

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-15 23:00:14 +02:00
1 親 228a4006a6
コミット 6fe1ee5743
2ファイル変更
+5 -9

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

+1 -3
ファイルの表示
@@ -43,8 +43,6 @@ public sealed partial class D2DPixelShaderDescriptorGenerator : IIncrementalGene
return default;
}
StructDeclarationSyntax typeDeclaration = (StructDeclarationSyntax)context.TargetNode;
// Check that the shader implements the ID2D1PixelShader interface
if (!typeSymbol.HasInterfaceWithType(context.SemanticModel.Compilation.GetTypeByMetadataName("ComputeSharp.D2D1.ID2D1PixelShader")!))
{
@@ -110,7 +108,7 @@ public sealed partial class D2DPixelShaderDescriptorGenerator : IIncrementalGene
string hlslSource = HlslSource.GetHlslSource(
diagnostics,
context.SemanticModel.Compilation,
typeDeclaration,
(StructDeclarationSyntax)context.TargetNode,
typeSymbol,
inputCount,
inputSimpleIndices,