From f7b0b747732013c2911acedf6239b2a3f836b132 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 17 Nov 2022 21:28:06 +0100 Subject: [PATCH] Add empty D2D1DrawInfoUpdateContext type --- .../Interop/D2D1DrawInfoUpdateContext{T}.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/ComputeSharp.D2D1/Shaders/Interop/D2D1DrawInfoUpdateContext{T}.cs diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1DrawInfoUpdateContext{T}.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1DrawInfoUpdateContext{T}.cs new file mode 100644 index 00000000..f42dfeb5 --- /dev/null +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1DrawInfoUpdateContext{T}.cs @@ -0,0 +1,29 @@ +using System; + +namespace ComputeSharp.D2D1.Interop; + +/// +/// An object allowing to interact with the shader data from within a transform. +/// +/// The type of shader the transform will interact with. +public readonly ref struct D2D1DrawInfoUpdateContext + where T : unmanaged, ID2D1PixelShader +{ + /// + /// Retrieves the instance currently being used in the associated effect. + /// + /// The instance currently being used in the associated effect. + public T GetConstantBuffer() + { + throw new NotImplementedException(); + } + + /// + /// Updates the instance to be used in the associated effect. + /// + /// The instance to be used in the associated effect. + public void SetConstantBuffer(in T shader) + { + throw new NotImplementedException(); + } +} \ No newline at end of file