Add D2D1 input description types

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-08 18:40:25 +02:00
1 親 df9454caf2
コミット 54d7cb53e2
8ファイル変更
+190

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

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