Add D2D1PixelShaderEffectProperty type

Closes #237
このコミットが含まれているのは:
Sergio Pedri committed 2022-05-24 00:32:53 +02:00
1 親 3be9a68090
コミット f49eabcb73
1ファイル変更
+19
+19
ファイルの表示
@@ -0,0 +1,19 @@
namespace ComputeSharp.D2D1.Interop;
/// <summary>
/// <para>A container for indices of properties from the <see cref="D2D1PixelShaderEffect"/> type.</para>
/// <para>The values in this type can be used to easily set and retrieve properties from effect instances.</para>
/// </summary>
public static class D2D1PixelShaderEffectProperty
{
/// <summary>
/// <para>The index for the constant buffer property of a <see cref="D2D1PixelShaderEffect"/> object.</para>
/// </summary>
/// <remarks>
/// <para>The value to set for this property can be retrieved with <see cref="D2D1PixelShader.GetConstantBuffer{T}(in T)"/>.</para>
/// <para>The value of this property is of type <c>D2D1_PROPERTY_TYPE_BLOB</c>.</para>
/// <para>This value can be passed when calling <c>ID2D1Effect::GetValue</c>.</para>
/// <para>For more info, see <see href="https://docs.microsoft.com/en-us/windows/win32/api/d2d1_1/nf-d2d1_1-id2d1properties-getvalue(u)"/>.</para>
/// </remarks>
public const uint ConstantBuffer = 0;
}