Use blocks for all if statements

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 7a7f6be038
コミット d910922ef5
28ファイル変更
+239 -59

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

+12 -3
ファイルの表示
@@ -55,9 +55,18 @@ partial class ShaderSourceRewriter
{
string typeName = operation.Member.ContainingType.GetFullMetadataName();
if (mappedName == $"__{nameof(GroupIds)}__get_Index") IsGroupIdsIndexUsed = true;
else if (typeName == typeof(GroupIds).FullName) IsGroupIdsUsed = true;
else if (typeName == typeof(GridIds).FullName) IsGridIdsUsed = true;
if (mappedName == $"__{nameof(GroupIds)}__get_Index")
{
IsGroupIdsIndexUsed = true;
}
else if (typeName == typeof(GroupIds).FullName)
{
IsGroupIdsUsed = true;
}
else if (typeName == typeof(GridIds).FullName)
{
IsGridIdsUsed = true;
}
// Check that the dispatch info types are only used from the main shader body
if (!this.isEntryPoint || this.localFunctionDepth > 0)