Implemented working version of metaprogramming
このコミットが含まれているのは:
1 親
df02a534ea
コミット
c231e8506a
7ファイル変更
+74
-17
検索条件に一致するファイルはありません
@@ -73,8 +73,13 @@ namespace ComputeSharp.SourceGenerators.Mappings
|
||||
/// </summary>
|
||||
/// <param name="typeSymbol">The input type to map.</param>
|
||||
/// <returns>The HLSL-compatible type name that can be used in an HLSL shader.</returns>
|
||||
[Pure]
|
||||
public static string GetMappedName(INamedTypeSymbol typeSymbol)
|
||||
{
|
||||
// Delegate types just return an empty string, as they're not actually
|
||||
// used in the generated shaders, but just mapped to a function at runtime.
|
||||
if (typeSymbol.TypeKind == TypeKind.Delegate) return "";
|
||||
|
||||
string typeName = typeSymbol.GetFullMetadataName();
|
||||
|
||||
// Special case for the structured buffer types
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする