Check for cancellation during HLSL rewriting
このコミットが含まれているのは:
1 親
38ce32e99a
コミット
c0f83657b3
6ファイル変更
+71
-16
検索条件に一致するファイルはありません
+10
-2
@@ -284,13 +284,20 @@ partial class D2DPixelShaderDescriptorGenerator
|
||||
false => $"static {HlslKnownTypes.GetMappedName(typeSymbol)}"
|
||||
};
|
||||
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
StaticFieldRewriter staticFieldRewriter = new(
|
||||
semanticModel,
|
||||
discoveredTypes,
|
||||
constantDefinitions,
|
||||
diagnostics);
|
||||
diagnostics,
|
||||
token);
|
||||
|
||||
string? assignment = staticFieldRewriter.Visit(variableDeclarator)?.NormalizeWhitespace(eol: "\n").ToFullString();
|
||||
ExpressionSyntax? processedDeclaration = staticFieldRewriter.Visit(variableDeclarator);
|
||||
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
string? assignment = processedDeclaration?.NormalizeWhitespace(eol: "\n").ToFullString();
|
||||
|
||||
needsD2D1RequiresScenePosition |= staticFieldRewriter.NeedsD2DRequiresScenePositionAttribute;
|
||||
|
||||
@@ -368,6 +375,7 @@ partial class D2DPixelShaderDescriptorGenerator
|
||||
constructors,
|
||||
constantDefinitions,
|
||||
diagnostics,
|
||||
token,
|
||||
isShaderEntryPoint);
|
||||
|
||||
// Rewrite the method syntax tree
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする