Add D2D1PixelShaderInputType enum and GetInputType API

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-06 02:50:05 +02:00
1 親 8dcde32689
コミット 12e2e4cf3f
2ファイル変更
+41

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

+10
ファイルの表示
@@ -27,6 +27,16 @@ public interface ID2D1Shader
[Obsolete("This method is not intended to be used directly by user code")]
uint GetInputCount();
/// <summary>
/// Gets the input type for the input at the input index.
/// </summary>
/// <param name="index">The index of the shader input to get the type for.</param>
/// <returns>The type of input at the specified index.</returns>
/// <remarks>The return value if the input is out of range is undefined.</remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
uint GetInputType(uint index);
/// <summary>
/// Loads the dispatch data for the shader.
/// </summary>
+31
ファイルの表示
@@ -0,0 +1,31 @@
namespace ComputeSharp.D2D1.Interop;
/// <summary>
/// Indicates the type of a given input for a D2D1 pixel shader.
/// </summary>
public enum D2D1PixelShaderInputType
{
/// <summary>
/// The input is of simple type.
/// </summary>
/// <remarks>
/// <para>
/// A pixel shader is of simple type when the consuming pixel shader requires only a single input value to perform its computation. This value would normally
/// come from sampling an input texture at the texture coordinate emitted by the vertex shader. Such a pixel shader is said to perform simple sampling.
/// </para>
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct2d/effect-shader-linking"/>.</para>
/// </remarks>
Simple,
/// <summary>
/// The input is of complex type.
/// </summary>
/// <remarks>
/// <para>
/// Some pixel shaders, such as a Gaussian blur, compute their output from multiple input samples
/// rather than just a single sample. Such a pixel shader is said to perform complex sampling.
/// </para>
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct2d/effect-shader-linking"/>.</para>
/// </remarks>
Complex
}