Added more shader constant property diagnostics
このコミットが含まれているのは:
1 親
f8e951dd15
コミット
7c02100df1
3ファイル変更
+45
-2
検索条件に一致するファイルはありません
@@ -196,8 +196,17 @@ namespace ComputeSharp.SourceGenerators
|
||||
{
|
||||
IPropertySymbol propertySymbol = semanticModel.GetDeclaredSymbol(propertyDeclaration)!;
|
||||
|
||||
if (!propertySymbol.IsStatic || !propertySymbol.IsReadOnly)
|
||||
if (!propertySymbol.IsStatic)
|
||||
{
|
||||
context.ReportDiagnostic(InstanceShaderPropertyDeclaration, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!propertySymbol.IsReadOnly)
|
||||
{
|
||||
context.ReportDiagnostic(NonReadonlyShaderPropertyDeclaration, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする