Fixed HLSL compilation when using nested struct types

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-11 23:12:09 +01:00
1 親 cd8fb59593
コミット 9d41cbf94c
10ファイル変更
+104 -57

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

+2 -2
ファイルの表示
@@ -75,7 +75,7 @@ namespace ComputeSharp.SourceGenerators.Extensions
return node.ReplaceNode(targetType, newType);
}
return node.ReplaceNode(targetType, ParseTypeName(typeName.Replace(".", "__")));
return node.ReplaceNode(targetType, ParseTypeName(typeName.ToHlslIdentifierName()));
}
/// <summary>
@@ -98,7 +98,7 @@ namespace ComputeSharp.SourceGenerators.Extensions
return ParseTypeName(mappedName!);
}
return ParseTypeName(typeName.Replace(".", "__"));
return ParseTypeName(typeName.ToHlslIdentifierName());
}
/// <summary>