Improve consistency in interop API parameters ordering

このコミットが含まれているのは:
Sergio Pedri committed 2022-12-22 10:56:03 -08:00
1 親 e64b638454
コミット 7761d0bbd8
10ファイル変更
+22 -22

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -426,11 +426,11 @@ public static class D2D1PixelShader
/// Sets the constant buffer from an input D2D1 pixel shader, by calling <c>ID2D1DrawInfo::SetPixelShaderConstantBuffer</c>.
/// </summary>
/// <typeparam name="T">The type of D2D1 pixel shader to set the constant buffer for.</typeparam>
/// <param name="shader">The input D2D1 pixel shader to set the contant buffer for.</param>
/// <param name="d2D1DrawInfo">A pointer to the <c>ID2D1DrawInfo</c> instance to use.</param>
/// <param name="shader">The input D2D1 pixel shader to set the contant buffer for.</param>
/// <exception cref="ArgumentNullException">Thrown if <paramref name="d2D1DrawInfo"/> is <see langword="null"/>.</exception>
/// <remarks>For more info, see <see href="https://docs.microsoft.com/windows/win32/api/d2d1effectauthor/nf-d2d1effectauthor-id2d1drawinfo-setpixelshaderconstantbuffer"/>.</remarks>
public static unsafe void SetConstantBufferForD2D1DrawInfo<T>(in T shader, void* d2D1DrawInfo)
public static unsafe void SetConstantBufferForD2D1DrawInfo<T>(void* d2D1DrawInfo, in T shader)
where T : unmanaged, ID2D1PixelShader
{
if (d2D1DrawInfo is null)
+2 -2
ファイルの表示
@@ -497,11 +497,11 @@ public static unsafe class D2D1PixelShaderEffect
/// Sets the constant buffer from an input D2D1 effect, by calling <c>ID2D1Effect::SetValue</c>.
/// </summary>
/// <typeparam name="T">The type of D2D1 pixel shader to set the constant buffer for.</typeparam>
/// <param name="shader">The input D2D1 pixel shader to set the contant buffer for.</param>
/// <param name="d2D1Effect">A pointer to the <c>ID2D1Effect</c> instance to use.</param>
/// <param name="shader">The input D2D1 pixel shader to set the contant buffer for.</param>
/// <exception cref="ArgumentNullException">Thrown if <paramref name="d2D1Effect"/> is <see langword="null"/>.</exception>
/// <remarks>For more info, see <see href="https://docs.microsoft.com/windows/win32/api/d2d1_1/nf-d2d1_1-id2d1properties-setvalue(uint32_d2d1_property_type_constbyte_uint32)"/>.</remarks>
public static void SetConstantBufferForD2D1Effect<T>(in T shader, void* d2D1Effect)
public static void SetConstantBufferForD2D1Effect<T>(void* d2D1Effect, in T shader)
where T : unmanaged, ID2D1PixelShader
{
if (d2D1Effect is null)