Use type aliases in DX12/D2D generators to write HLSL

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-12 23:22:37 +01:00
1 親 1cc03cdd7b
コミット 0d667a5da0
8ファイル変更
+121 -105

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

+13
ファイルの表示
@@ -0,0 +1,13 @@
#pragma warning disable IDE0005
// Shared type aliases for transparent models for gathered HLSL info. These are used
// when writing the transpiled HLSL. No need for concrete types for any of these, so
// just using type aliases keeps things simpler while still making the code explicit.
global using HlslConstant = (string Name, string Value);
global using HlslUserType = (string Name, string Definition);
global using HlslResourceField = (string MetadataName, string Name, string Type);
global using HlslValueField = (string Name, string Type);
global using HlslResourceTextureField = (string Name, string Type, int Index);
global using HlslStaticField = (string Name, string TypeDeclaration, string? Assignment);
global using HlslSharedBuffer = (string Name, string Type, int? Count);
global using HlslMethod = (string Signature, string Declaration);