Add ID2D1ResourceTextureDescriptionsLoader and API

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-08 15:45:44 +02:00
1 親 7216a7b72e
コミット abb1d46a2d
2ファイル変更
+28

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

@@ -0,0 +1,18 @@
using System;
using System.ComponentModel;
namespace ComputeSharp.D2D1.__Internals;
/// <summary>
/// A base <see langword="interface"/> representing a loader for resource texture descriptions in a D2D1 shader.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This interface is not intended to be used directly by user code")]
public interface ID2D1ResourceTextureDescriptionsLoader
{
/// <summary>
/// Loads the available resource texture descriptions for the shader.
/// </summary>
/// <param name="data">The sequence of serialized resource texture descriptions.</param>
void LoadResourceTextureDescriptions(ReadOnlySpan<byte> data);
}
+10
ファイルの表示
@@ -55,6 +55,16 @@ public interface ID2D1Shader
void LoadInputDescriptions<TLoader>(ref TLoader loader)
where TLoader : struct, ID2D1InputDescriptionsLoader;
/// <summary>
/// Loads the resource texture descriptions for the shader, if any.
/// </summary>
/// <typeparam name="TLoader">The type of resource texture descriptions loader being used.</typeparam>
/// <param name="loader">The <typeparamref name="TLoader"/> instance to use to load the resource texture descriptions.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
void LoadResourceTextureDescriptions<TLoader>(ref TLoader loader)
where TLoader : struct, ID2D1ResourceTextureDescriptionsLoader;
/// <summary>
/// Gets the output buffer precision and depth for the shader.
/// </summary>