Add explicit discards to all value returning expressions
このコミットが含まれているのは:
1 親
38adbe6087
コミット
9343ac7f7b
47ファイル変更
+144
-144
検索条件に一致するファイルはありません
+4
-4
@@ -96,12 +96,12 @@ partial class IShaderGenerator
|
||||
|
||||
void AppendLF()
|
||||
{
|
||||
textBuilder.Append('\n');
|
||||
_ = textBuilder.Append('\n');
|
||||
}
|
||||
|
||||
void AppendLine(string text)
|
||||
{
|
||||
textBuilder.Append(text);
|
||||
_ = textBuilder.Append(text);
|
||||
}
|
||||
|
||||
void AppendParsedStatement(string text)
|
||||
@@ -117,7 +117,7 @@ partial class IShaderGenerator
|
||||
{
|
||||
string hlslSource = textBuilder.ToString();
|
||||
|
||||
textBuilder.Append(hlslSource);
|
||||
_ = textBuilder.Append(hlslSource);
|
||||
|
||||
sizeHint += textBuilder.Length;
|
||||
|
||||
@@ -133,7 +133,7 @@ partial class IShaderGenerator
|
||||
MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, IdentifierName("builder"), IdentifierName("Append")))
|
||||
.AddArgumentListArguments(Argument(LiteralExpression(SyntaxKind.StringLiteralExpression, hlslSourceLiteralExpression)))));
|
||||
|
||||
textBuilder.Clear();
|
||||
_ = textBuilder.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -570,31 +570,31 @@ partial class IShaderGenerator
|
||||
|
||||
void AppendLF()
|
||||
{
|
||||
hlslBuilder.Append('\n');
|
||||
_ = hlslBuilder.Append('\n');
|
||||
}
|
||||
|
||||
void AppendLine(string text)
|
||||
{
|
||||
hlslBuilder.Append(text);
|
||||
_ = hlslBuilder.Append(text);
|
||||
}
|
||||
|
||||
void AppendLineAndLF(string text)
|
||||
{
|
||||
hlslBuilder.Append(text);
|
||||
hlslBuilder.Append('\n');
|
||||
_ = hlslBuilder.Append(text);
|
||||
_ = hlslBuilder.Append('\n');
|
||||
}
|
||||
|
||||
void AppendCharacterAndLF(char c)
|
||||
{
|
||||
hlslBuilder.Append(c);
|
||||
hlslBuilder.Append('\n');
|
||||
_ = hlslBuilder.Append(c);
|
||||
_ = hlslBuilder.Append('\n');
|
||||
}
|
||||
|
||||
string FlushText()
|
||||
{
|
||||
string text = hlslBuilder.ToString();
|
||||
|
||||
hlslBuilder.Clear();
|
||||
_ = hlslBuilder.Clear();
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ partial class IShaderGenerator
|
||||
string sourceFilename = $"ComputeSharp.SourceGenerators.ComputeSharp.Libraries.{rid}.{name}.dll";
|
||||
string targetFilename = Path.Combine(folder, rid, $"{name}.dll");
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(targetFilename));
|
||||
_ = Directory.CreateDirectory(Path.GetDirectoryName(targetFilename));
|
||||
|
||||
using Stream sourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(sourceFilename);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする