Fix typos in ID2D1DrawInfoUpdateContext types
このコミットが含まれているのは:
1 親
f8e1cdd315
コミット
7db2c02c3b
5ファイル変更
+51
-51
検索条件に一致するファイルはありません
@@ -29,12 +29,12 @@ namespace ComputeSharp.D2D1.Interop;
|
||||
/// interface ID2D1TransformMapper : IUnknown
|
||||
/// {
|
||||
/// HRESULT MapInputRectsToOutputRect(
|
||||
/// [in] const ID2D1DrawInfoUpdateContex* updateContext,
|
||||
/// [in] const RECT* inputRects,
|
||||
/// [in] const RECT* inputOpaqueSubRects,
|
||||
/// UINT32 inputRectCount,
|
||||
/// [out] RECT* outputRect,
|
||||
/// [out] RECT* outputOpaqueSubRect);
|
||||
/// [in] const ID2D1DrawInfoUpdateContext* updateContext,
|
||||
/// [in] const RECT* inputRects,
|
||||
/// [in] const RECT* inputOpaqueSubRects,
|
||||
/// UINT32 inputRectCount,
|
||||
/// [out] RECT* outputRect,
|
||||
/// [out] RECT* outputOpaqueSubRect);
|
||||
///
|
||||
/// HRESULT MapOutputRectToInputRects(
|
||||
/// [in] const RECT* outputRect,
|
||||
@@ -60,10 +60,10 @@ namespace ComputeSharp.D2D1.Interop;
|
||||
/// <para>
|
||||
/// The main difference between these APIs and the ones in <c>ID2D1Transform</c> is the fact that this interface is standalone (ie. it doesn't inherit from <c>ID2D1TransformNode</c>),
|
||||
/// and that it allows transform mappers to also read and update additional data tied to an effect instance (such as the shader constant buffer). This is done through the
|
||||
/// <c>ID2D1DrawInfoUpdateContex</c> interface, that is passed to <c>MapInputRectsToOutputRect</c>. This interface is defined as follows:
|
||||
/// <c>ID2D1DrawInfoUpdateContext</c> interface, that is passed to <c>MapInputRectsToOutputRect</c>. This interface is defined as follows:
|
||||
/// <code>
|
||||
/// [uuid(430C5B40-AE16-485F-90E6-4FA4915144B6)]
|
||||
/// interface ID2D1DrawInfoUpdateContex : IUnknown
|
||||
/// interface ID2D1DrawInfoUpdateContext : IUnknown
|
||||
/// {
|
||||
/// HRESULT GetConstantBufferSize([out] UINT32 *size);
|
||||
///
|
||||
@@ -78,7 +78,7 @@ namespace ComputeSharp.D2D1.Interop;
|
||||
/// </code>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// That is, <c>ID2D1DrawInfoUpdateContex</c> allows a custom transform (an <c>ID2D1TransformMapper</c> instance) to interact with the underlying <c>ID2D1DrawInfo</c> object
|
||||
/// That is, <c>ID2D1DrawInfoUpdateContext</c> allows a custom transform (an <c>ID2D1TransformMapper</c> instance) to interact with the underlying <c>ID2D1DrawInfo</c> object
|
||||
/// that is owned by the effect being used, in a safe way. For instance, it allows a transform to read and update the constant buffer, which can be used to allow a transform to
|
||||
/// pass the exact dispatch area size to an input shader, without the consumer having to manually query that information beforehand (which might not be available either).
|
||||
/// </para>
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ partial struct D2D1DrawInfoUpdateContextImpl
|
||||
/// <summary>
|
||||
/// The implementation for <see cref="ID2D1DrawInfoUpdateContext"/>.
|
||||
/// </summary>
|
||||
private static unsafe class ID2D1DrawInfoUpdateContexMethods
|
||||
private static unsafe class ID2D1DrawInfoUpdateContextMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="GetConstantBufferSize"/>
|
||||
|
||||
+4
-4
@@ -10,7 +10,7 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
/// <inheritdoc/>
|
||||
unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
{
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContexInternal.Close"/>
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContextInternal.Close"/>
|
||||
public int Close()
|
||||
{
|
||||
this.d2D1DrawInfo = null;
|
||||
@@ -19,9 +19,9 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The implementation for <see cref="ID2D1DrawInfoUpdateContexInternal"/>.
|
||||
/// The implementation for <see cref="ID2D1DrawInfoUpdateContextInternal"/>.
|
||||
/// </summary>
|
||||
private static class ID2D1DrawInfoUpdateContexInternalMethods
|
||||
private static class ID2D1DrawInfoUpdateContextInternalMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="Close"/>
|
||||
@@ -76,7 +76,7 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContexInternal.Close"/>
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContextInternal.Close"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int Close(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
|
||||
+35
-35
@@ -13,7 +13,7 @@ using RuntimeHelpers = ComputeSharp.D2D1.NetStandard.System.Runtime.CompilerServ
|
||||
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
|
||||
/// <summary>
|
||||
/// An implementation of the <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContexInternal"/> interfaces.
|
||||
/// An implementation of the <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContextInternal"/> interfaces.
|
||||
/// </summary>
|
||||
internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
{
|
||||
@@ -34,49 +34,49 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="D2D1DrawInfoUpdateContextImpl"/> instance, for <see cref="ID2D1DrawInfoUpdateContext"/>.
|
||||
/// </summary>
|
||||
private static readonly void** VtblForID2D1DrawInfoUpdateContex = InitVtblForID2D1DrawInfoUpdateContexAndID2D1DrawInfoUpdateContexInternal();
|
||||
private static readonly void** VtblForID2D1DrawInfoUpdateContext = InitVtblForID2D1DrawInfoUpdateContextAndID2D1DrawInfoUpdateContextInternal();
|
||||
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="D2D1DrawInfoUpdateContextImpl"/> instance, for <see cref="ID2D1DrawInfoUpdateContexInternal"/>.
|
||||
/// The shared vtable pointer for <see cref="D2D1DrawInfoUpdateContextImpl"/> instance, for <see cref="ID2D1DrawInfoUpdateContextInternal"/>.
|
||||
/// </summary>
|
||||
private static readonly void** VtblForID2D1DrawInfoUpdateContexInternal = &VtblForID2D1DrawInfoUpdateContex[5];
|
||||
private static readonly void** VtblForID2D1DrawInfoUpdateContextInternal = &VtblForID2D1DrawInfoUpdateContext[5];
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the combined vtable for <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContexInternal"/>.
|
||||
/// Initializes the combined vtable for <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContextInternal"/>.
|
||||
/// </summary>
|
||||
/// <returns>The combined vtable for <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContexInternal"/>.</returns>
|
||||
private static void** InitVtblForID2D1DrawInfoUpdateContexAndID2D1DrawInfoUpdateContexInternal()
|
||||
/// <returns>The combined vtable for <see cref="ID2D1DrawInfoUpdateContext"/> and <see cref="ID2D1DrawInfoUpdateContextInternal"/>.</returns>
|
||||
private static void** InitVtblForID2D1DrawInfoUpdateContextAndID2D1DrawInfoUpdateContextInternal()
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(D2D1DrawInfoUpdateContextImpl), sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContexMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContexMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContexMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint*, int>)&ID2D1DrawInfoUpdateContexMethods.GetConstantBufferSize;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContexMethods.GetConstantBuffer;
|
||||
lpVtbl[5] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContexMethods.SetConstantBuffer;
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint*, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBufferSize;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBuffer;
|
||||
lpVtbl[5] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.SetConstantBuffer;
|
||||
#else
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.GetConstantBufferSizeWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.GetConstantBufferWrapper);
|
||||
lpVtbl[5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexMethods.SetConstantBufferWrapper);
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.GetConstantBufferSizeWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.GetConstantBufferWrapper);
|
||||
lpVtbl[5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.SetConstantBufferWrapper);
|
||||
#endif
|
||||
|
||||
// ID2D1ResourceTextureManagerInternal
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContexInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContexInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContexInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, int>)&ID2D1DrawInfoUpdateContexInternalMethods.Close;
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, int>)&ID2D1DrawInfoUpdateContextInternalMethods.Close;
|
||||
#else
|
||||
lpVtbl[6 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexInternalMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[6 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexInternalMethods.AddRefWrapper);
|
||||
lpVtbl[6 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexInternalMethods.ReleaseWrapper);
|
||||
lpVtbl[6 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContexInternalMethods.CloseWrapper);
|
||||
lpVtbl[6 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[6 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.AddRefWrapper);
|
||||
lpVtbl[6 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.ReleaseWrapper);
|
||||
lpVtbl[6 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.CloseWrapper);
|
||||
#endif
|
||||
|
||||
return lpVtbl;
|
||||
@@ -85,12 +85,12 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
/// <summary>
|
||||
/// The vtable pointer for the current instance, for <see cref="ID2D1DrawInfoUpdateContext"/>.
|
||||
/// </summary>
|
||||
private void** lpVtblForID2D1DrawInfoUpdateContex;
|
||||
private void** lpVtblForID2D1DrawInfoUpdateContext;
|
||||
|
||||
/// <summary>
|
||||
/// The vtable pointer for the current instance, for <see cref="ID2D1DrawInfoUpdateContexInternal"/>.
|
||||
/// The vtable pointer for the current instance, for <see cref="ID2D1DrawInfoUpdateContextInternal"/>.
|
||||
/// </summary>
|
||||
private void** lpVtblForID2D1DrawInfoUpdateContexInternal;
|
||||
private void** lpVtblForID2D1DrawInfoUpdateContextInternal;
|
||||
|
||||
/// <summary>
|
||||
/// The current reference count for the object (from <see cref="IUnknown"/>).
|
||||
@@ -139,8 +139,8 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
return E.E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
@this->lpVtblForID2D1DrawInfoUpdateContex = VtblForID2D1DrawInfoUpdateContex;
|
||||
@this->lpVtblForID2D1DrawInfoUpdateContexInternal = VtblForID2D1DrawInfoUpdateContexInternal;
|
||||
@this->lpVtblForID2D1DrawInfoUpdateContext = VtblForID2D1DrawInfoUpdateContext;
|
||||
@this->lpVtblForID2D1DrawInfoUpdateContextInternal = VtblForID2D1DrawInfoUpdateContextInternal;
|
||||
@this->referenceCount = 1;
|
||||
@this->constantBuffer = constantBuffer;
|
||||
@this->constantBufferSize = constantBufferSize;
|
||||
@@ -159,7 +159,7 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
return E.E_POINTER;
|
||||
}
|
||||
|
||||
// ID2D1DrawInfoUpdateContex
|
||||
// ID2D1DrawInfoUpdateContext
|
||||
if (riid->Equals(Windows.__uuidof<IUnknown>()) ||
|
||||
riid->Equals(ID2D1DrawInfoUpdateContext.Guid))
|
||||
{
|
||||
@@ -170,8 +170,8 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
return S.S_OK;
|
||||
}
|
||||
|
||||
// ID2D1DrawInfoUpdateContexInternal
|
||||
if (riid->Equals(ID2D1DrawInfoUpdateContexInternal.Guid))
|
||||
// ID2D1DrawInfoUpdateContextInternal
|
||||
if (riid->Equals(ID2D1DrawInfoUpdateContextInternal.Guid))
|
||||
{
|
||||
_ = Interlocked.Increment(ref this.referenceCount);
|
||||
|
||||
|
||||
+2
-2
@@ -11,10 +11,10 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
/// An internal version of <see cref="ID2D1DrawInfoUpdateContext"/> that supports being closed, to manage lifetime scopes.
|
||||
/// </summary>
|
||||
[Guid("CF2F5BB0-3F5E-4D6E-8FF1-D9A7EB6C0250")]
|
||||
internal unsafe struct ID2D1DrawInfoUpdateContexInternal
|
||||
internal unsafe struct ID2D1DrawInfoUpdateContextInternal
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="System.Guid"/> for <see cref="ID2D1DrawInfoUpdateContexInternal"/> (<c>CF2F5BB0-3F5E-4D6E-8FF1-D9A7EB6C0250</c>).
|
||||
/// Gets the <see cref="System.Guid"/> for <see cref="ID2D1DrawInfoUpdateContextInternal"/> (<c>CF2F5BB0-3F5E-4D6E-8FF1-D9A7EB6C0250</c>).
|
||||
/// </summary>
|
||||
public static ref readonly Guid Guid
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする