diff --git a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs index 7d503b40..b9d2593a 100644 --- a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs +++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs @@ -27,6 +27,16 @@ public interface ID2D1Shader [Obsolete("This method is not intended to be used directly by user code")] uint GetInputCount(); + /// + /// Gets the input type for the input at the input index. + /// + /// The index of the shader input to get the type for. + /// The type of input at the specified index. + /// The return value if the input is out of range is undefined. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is not intended to be used directly by user code")] + uint GetInputType(uint index); + /// /// Loads the dispatch data for the shader. /// diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderInputType.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderInputType.cs new file mode 100644 index 00000000..19ae7aec --- /dev/null +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderInputType.cs @@ -0,0 +1,31 @@ +namespace ComputeSharp.D2D1.Interop; + +/// +/// Indicates the type of a given input for a D2D1 pixel shader. +/// +public enum D2D1PixelShaderInputType +{ + /// + /// The input is of simple type. + /// + /// + /// + /// 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. + /// + /// For more info, see . + /// + Simple, + + /// + /// The input is of complex type. + /// + /// + /// + /// 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. + /// + /// For more info, see . + /// + Complex +}