Add extra LF in shaders with no captured values

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-29 03:25:40 +02:00
1 親 989f346555
コミット f2e4dac552
1ファイル変更
+7 -5
@@ -505,12 +505,14 @@ partial class ID2D1ShaderGenerator
} }
// Captured variables // Captured variables
AppendLF(); if (valueFields.Any())
// User-defined values
foreach (var (fieldName, fieldType) in valueFields)
{ {
AppendLineAndLF($"{fieldType} {fieldName};"); AppendLF();
foreach (var (fieldName, fieldType) in valueFields)
{
AppendLineAndLF($"{fieldType} {fieldName};");
}
} }
// Forward declarations // Forward declarations