diff --git a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1ResourceTextureDescriptionsLoader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1ResourceTextureDescriptionsLoader.cs new file mode 100644 index 00000000..76b0014e --- /dev/null +++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1ResourceTextureDescriptionsLoader.cs @@ -0,0 +1,18 @@ +using System; +using System.ComponentModel; + +namespace ComputeSharp.D2D1.__Internals; + +/// +/// A base representing a loader for resource texture descriptions in a D2D1 shader. +/// +[EditorBrowsable(EditorBrowsableState.Never)] +[Obsolete("This interface is not intended to be used directly by user code")] +public interface ID2D1ResourceTextureDescriptionsLoader +{ + /// + /// Loads the available resource texture descriptions for the shader. + /// + /// The sequence of serialized resource texture descriptions. + void LoadResourceTextureDescriptions(ReadOnlySpan data); +} diff --git a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs index cfc6814f..554b138c 100644 --- a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs +++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs @@ -55,6 +55,16 @@ public interface ID2D1Shader void LoadInputDescriptions(ref TLoader loader) where TLoader : struct, ID2D1InputDescriptionsLoader; + /// + /// Loads the resource texture descriptions for the shader, if any. + /// + /// The type of resource texture descriptions loader being used. + /// The instance to use to load the resource texture descriptions. + [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This method is not intended to be used directly by user code")] + void LoadResourceTextureDescriptions(ref TLoader loader) + where TLoader : struct, ID2D1ResourceTextureDescriptionsLoader; + /// /// Gets the output buffer precision and depth for the shader. ///