From f49eabcb73e3a019f0909e63e213c9ad44d57104 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 24 May 2022 00:32:53 +0200 Subject: [PATCH] Add D2D1PixelShaderEffectProperty type Closes #237 --- .../Interop/D2D1PixelShaderEffectProperty.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs new file mode 100644 index 00000000..de30340b --- /dev/null +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffectProperty.cs @@ -0,0 +1,19 @@ +namespace ComputeSharp.D2D1.Interop; + +/// +/// A container for indices of properties from the type. +/// The values in this type can be used to easily set and retrieve properties from effect instances. +/// +public static class D2D1PixelShaderEffectProperty +{ + /// + /// The index for the constant buffer property of a object. + /// + /// + /// The value to set for this property can be retrieved with . + /// The value of this property is of type D2D1_PROPERTY_TYPE_BLOB. + /// This value can be passed when calling ID2D1Effect::GetValue. + /// For more info, see . + /// + public const uint ConstantBuffer = 0; +}