Generate resource texture descriptions as ReadOnlyMemory<T>

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-27 22:48:59 +02:00
1 親 99110fb0a6
コミット b17b7c70fe
9ファイル変更
+128 -117

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

+7
ファイルの表示
@@ -91,6 +91,13 @@ public interface ID2D1Shader
[Obsolete("This method is not intended to be used directly by user code")]
ReadOnlyMemory<D2D1InputDescription> InputDescriptions { get; }
/// <summary>
/// Gets the resource texture descriptions for the shader.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
ReadOnlyMemory<D2D1ResourceTextureDescription> ResourceTextureDescriptions { get; }
/// <summary>
/// Loads the resource texture descriptions for the shader, if any.
/// </summary>
+11
ファイルの表示
@@ -19,6 +19,17 @@ public readonly struct D2D1ResourceTextureDescription
/// </summary>
private readonly int dimensions;
/// <summary>
/// Creates a new <see cref="D2D1ResourceTextureDescription"/> instance with the specified parameters.
/// </summary>
/// <param name="index">The index of the resource texture the description belongs to.</param>
/// <param name="dimensions">The number of dimensions of the resource texture the description belongs to.</param>
public D2D1ResourceTextureDescription(int index, int dimensions)
{
this.index = index;
this.dimensions = dimensions;
}
/// <summary>
/// Gets the index of the resource texture the description belongs to.
/// </summary>