Fixed source generator unit tests

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-11 15:38:13 +01:00
1 親 3147e8fade
コミット b330616aa9
2ファイル変更
+8 -39

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

+4
ファイルの表示
@@ -206,6 +206,10 @@ namespace ComputeSharp.SourceGenerators
continue;
}
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass is { Name: nameof(GroupSharedAttribute) });
if (attribute is not null) continue;
// Constant properties must be of a primitive, vector or matrix type
if (fieldSymbol.Type is not INamedTypeSymbol typeSymbol ||
!HlslKnownTypes.IsKnownHlslType(typeSymbol.GetFullMetadataName()))