Generate input descriptions as ReadOnlyMemory<T>
このコミットが含まれているのは:
1 親
62988f10fe
コミット
ac7d9648d3
8ファイル変更
+145
-111
検索条件に一致するファイルはありません
@@ -84,6 +84,13 @@ public interface ID2D1Shader
|
||||
[Obsolete("This method is not intended to be used directly by user code")]
|
||||
ReadOnlyMemory<D2D1PixelShaderInputType> InputTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the input descriptions for the current shader.
|
||||
/// </summary>
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[Obsolete("This method is not intended to be used directly by user code")]
|
||||
ReadOnlyMemory<D2D1InputDescription> InputDescriptions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Loads the input descriptions for the shader, if any.
|
||||
/// </summary>
|
||||
|
||||
@@ -33,6 +33,17 @@ public readonly struct D2D1InputDescription
|
||||
/// </summary>
|
||||
private readonly int levelOfDetailCount;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="D2D1InputDescription"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="index">The index of the resource the description belongs to.</param>
|
||||
/// <param name="filter">The type of filter to apply to the input texture.</param>
|
||||
public D2D1InputDescription(int index, D2D1Filter filter)
|
||||
{
|
||||
this.index = index;
|
||||
this.filter = filter;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the index of the resource the description belongs to.
|
||||
/// </summary>
|
||||
@@ -46,5 +57,9 @@ public readonly struct D2D1InputDescription
|
||||
/// <summary>
|
||||
/// Gets the mip level to retrieve from the upstream transform, if specified.
|
||||
/// </summary>
|
||||
public int LevelOfDetailCount => this.levelOfDetailCount;
|
||||
public int LevelOfDetailCount
|
||||
{
|
||||
get => this.levelOfDetailCount;
|
||||
init => this.levelOfDetailCount = value;
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする