Allow shader input indices from defined constants
このコミットが含まれているのは:
1 親
40b0c63909
コミット
2834eb67dd
3ファイル変更
+33
-33
検索条件に一致するファイルはありません
+2
-2
@@ -62,8 +62,8 @@ public sealed class NonConstantD2DInputArgumentAnalyzer : DiagnosticAnalyzer
|
||||
return;
|
||||
}
|
||||
|
||||
// This analyzer should only kick in when the target parameter is an 'int', and the argument is not constant
|
||||
if (operation.Value is ILiteralOperation { ConstantValue.HasValue: true } or IUnaryOperation { ConstantValue.HasValue: true, Operand: ILiteralOperation })
|
||||
// This analyzer should also only kick in when the argument is not constant
|
||||
if (operation.Value.ConstantValue.HasValue)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする