Fix constants tracking when rewriting shader fields

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-04 23:28:08 +02:00
1 親 d707bc51fc
コミット ee16303aeb
3ファイル変更
+54 -7

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

@@ -56,9 +56,11 @@ partial class ID2D1ShaderGenerator
var semanticModelProvider = new SemanticModelProvider(compilation);
var valueFields = GetInstanceFields(builder, structDeclarationSymbol, discoveredTypes);
var (entryPoint, processedMethods) = GetProcessedMethods(builder, structDeclaration, structDeclarationSymbol, semanticModelProvider, discoveredTypes, staticMethods, constantDefinitions);
var staticFields = GetStaticFields(builder, semanticModelProvider, structDeclaration, structDeclarationSymbol, discoveredTypes, constantDefinitions);
// Process the discovered types and constants
var declaredTypes = GetDeclaredTypes(builder, structDeclarationSymbol, discoveredTypes);
var definedConstants = GetDefinedConstants(constantDefinitions);
var staticFields = GetStaticFields(builder, semanticModelProvider, structDeclaration, structDeclarationSymbol, discoveredTypes, constantDefinitions);
// Gather the shader metadata
GatherD2D1AttributeInfo(