Emit ConstantBufferMarshaller type in D2D1 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 20:51:39 +01:00
1 親 55b696ffd6
コミット 2fc520c965
4ファイル変更
+175 -97

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

+7 -1
ファイルの表示
@@ -180,8 +180,14 @@ internal sealed class IndentedTextWriter : IDisposable
/// <summary>
/// Writes a line to the underlying buffer.
/// </summary>
public void WriteLine()
/// <param name="skipIfPresent">Indicates whether to skip adding the line if there already is one.</param>
public void WriteLine(bool skipIfPresent = false)
{
if (skipIfPresent && this.builder.WrittenSpan is [.., '\n', '\n'])
{
return;
}
this.builder.Add(DefaultNewLine);
}