Added initial T4 template for HLSL intrinsics

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-03 17:50:31 +01:00
1 親 058ab70f39
コミット de7bb4911f
5ファイル変更
+17855 -1913

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

+9
ファイルの表示
@@ -30,6 +30,11 @@
</ItemGroup>
<ItemGroup>
<Compile Update="Core\Intrinsics\Hlsl.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Hlsl.tt</DependentUpon>
</Compile>
<Compile Update="Core\Primitives\Bool\Bool2.g.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
@@ -133,6 +138,10 @@
</ItemGroup>
<ItemGroup>
<None Update="Core\Intrinsics\Hlsl.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Hlsl.g.cs</LastGenOutput>
</None>
<None Update="Core\Primitives\Bool\Bool2.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>Bool2.g.cs</LastGenOutput>
+24
ファイルの表示
@@ -0,0 +1,24 @@
using System;
namespace ComputeSharp.Core.Intrinsics.Attributes
{
/// <summary>
/// An attribute indicating the native member name of a given HLSL intrinsic.
/// </summary>
internal sealed class HlslIntrinsicNameAttribute : Attribute
{
/// <summary>
/// Creates a new <see cref="HlslIntrinsicNameAttribute"/> instance with the specified parameters.
/// </summary>
/// <param name="name">The name of the HLSL intrinsic.</param>
public HlslIntrinsicNameAttribute(string name)
{
Name = name;
}
/// <summary>
/// Gets the name of the HLSL intrinsic.
/// </summary>
public string Name { get; }
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み