Generate constant buffer native layout mapping type

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-28 02:13:39 +02:00
1 親 14af53c6a9
コミット f9aa96ce3d
3ファイル変更
+146 -4

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

+11 -1
ファイルの表示
@@ -181,8 +181,18 @@ internal static partial class HlslKnownTypes
/// Gets the mapped HLSL-compatible type name for the input type name.
/// </summary>
/// <param name="originalName">The input type name to map.</param>
/// <param name="mappedName">The resulting mapped type name, if found.</param>
/// <returns>The HLSL-compatible type name that can be used in an HLSL shader.</returns>
public static string GetMappedName(string originalName)
{
return KnownHlslTypes[originalName];
}
/// <summary>
/// Tries to get the mapped HLSL-compatible type name for the input type name.
/// </summary>
/// <param name="originalName">The input type name to map.</param>
/// <param name="mappedName">The resulting mapped type name, if found.</param>
/// <returns>Whether a mapped name was available.</returns>
public static bool TryGetMappedName(string originalName, out string? mappedName)
{
return KnownHlslTypes.TryGetValue(originalName, out mappedName);