Initial implementation of LoadResourceTextureDescriptions generator

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-08 15:45:44 +02:00
1 親 b28d3f2500
コミット 8b42c7011e
12ファイル変更
+437 -15

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

@@ -3,20 +3,20 @@
namespace ComputeSharp.D2D1;
/// <summary>
/// An attribute for resource fields in a D2D1 shader indicating the index of the D2D1 resource.
/// An attribute for resource fields in a D2D1 shader indicating the index of the D2D1 resource texture.
/// This is needed to bind an input resource in a shader to the correct input. Using this attribute is mandatory.
/// </summary>
/// <remarks>
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/api/d2d1effectauthor/nf-d2d1effectauthor-id2d1drawinfo-setresourcetexture"/>.</para>
/// </remarks>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class D2DResourceIndexAttribute : Attribute
public sealed class D2DResourceTextureIndexAttribute : Attribute
{
/// <summary>
/// Creates a new instance of the <see cref="D2DResourceIndexAttribute"/> type with the specified arguments.
/// Creates a new instance of the <see cref="D2DResourceTextureIndexAttribute"/> type with the specified arguments.
/// </summary>
/// <param name="index">The index of the annotated resource field.</param>
public D2DResourceIndexAttribute(int index)
public D2DResourceTextureIndexAttribute(int index)
{
Index = index;
}