Also use [MemberFunction] in handwritten CCW types
このコミットが含まれているのは:
1 親
d1a07143aa
コミット
c3c1bf0509
18ファイル変更
+183
-176
検索条件に一致するファイルはありません
+9
-8
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
@@ -15,7 +16,7 @@ partial struct PixelShaderEffect
|
||||
private static unsafe class ID2D1DrawTransformMethods
|
||||
{
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(PixelShaderEffect* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -24,7 +25,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(PixelShaderEffect* @this)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -33,7 +34,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(PixelShaderEffect* @this)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -42,7 +43,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.GetInputCount"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint GetInputCount(PixelShaderEffect* @this)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -60,7 +61,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.MapOutputRectToInputRects"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapOutputRectToInputRects(PixelShaderEffect* @this, RECT* outputRect, RECT* inputRects, uint inputRectsCount)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -108,7 +109,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.MapInputRectsToOutputRect"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapInputRectsToOutputRect(PixelShaderEffect* @this, RECT* inputRects, RECT* inputOpaqueSubRects, uint inputRectCount, RECT* outputRect, RECT* outputOpaqueSubRect)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -200,7 +201,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.MapInvalidRect"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapInvalidRect(PixelShaderEffect* @this, uint inputIndex, RECT invalidInputRect, RECT* invalidOutputRect)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
@@ -240,7 +241,7 @@ partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.SetDrawInfo"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int SetDrawInfo(PixelShaderEffect* @this, ID2D1DrawInfo* drawInfo)
|
||||
{
|
||||
@this = (PixelShaderEffect*)&((void**)@this)[-1];
|
||||
|
||||
+7
-6
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
|
||||
@@ -18,28 +19,28 @@ internal unsafe partial struct PixelShaderEffect
|
||||
private static class ID2D1EffectImplMethods
|
||||
{
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(PixelShaderEffect* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
return @this->QueryInterface(riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(PixelShaderEffect* @this)
|
||||
{
|
||||
return @this->AddRef();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(PixelShaderEffect* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.Initialize"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int Initialize(PixelShaderEffect* @this, ID2D1EffectContext* effectContext, ID2D1TransformGraph* transformGraph)
|
||||
{
|
||||
try
|
||||
@@ -81,7 +82,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.PrepareForRender"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int PrepareForRender(PixelShaderEffect* @this, D2D1_CHANGE_TYPE changeType)
|
||||
{
|
||||
try
|
||||
@@ -145,7 +146,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.SetGraph"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int SetGraph(PixelShaderEffect* @this, ID2D1TransformGraph* transformGraph)
|
||||
{
|
||||
return E.E_NOTIMPL;
|
||||
|
||||
@@ -32,22 +32,22 @@ internal unsafe partial struct PixelShaderEffect
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 14);
|
||||
|
||||
// ID2D1EffectImpl
|
||||
lpVtbl[0] = (delegate* unmanaged<PixelShaderEffect*, Guid*, void**, int>)&ID2D1EffectImplMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<PixelShaderEffect*, ID2D1EffectContext*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged<PixelShaderEffect*, D2D1_CHANGE_TYPE, int>)&ID2D1EffectImplMethods.PrepareForRender;
|
||||
lpVtbl[5] = (delegate* unmanaged<PixelShaderEffect*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.SetGraph;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, Guid*, void**, int>)&ID2D1EffectImplMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, ID2D1EffectContext*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, D2D1_CHANGE_TYPE, int>)&ID2D1EffectImplMethods.PrepareForRender;
|
||||
lpVtbl[5] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.SetGraph;
|
||||
|
||||
// ID2D1DrawTransform
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<PixelShaderEffect*, Guid*, void**, int>)&ID2D1DrawTransformMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.GetInputCount;
|
||||
lpVtbl[6 + 4] = (delegate* unmanaged<PixelShaderEffect*, RECT*, RECT*, uint, int>)&ID2D1DrawTransformMethods.MapOutputRectToInputRects;
|
||||
lpVtbl[6 + 5] = (delegate* unmanaged<PixelShaderEffect*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1DrawTransformMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[6 + 6] = (delegate* unmanaged<PixelShaderEffect*, uint, RECT, RECT*, int>)&ID2D1DrawTransformMethods.MapInvalidRect;
|
||||
lpVtbl[6 + 7] = (delegate* unmanaged<PixelShaderEffect*, ID2D1DrawInfo*, int>)&ID2D1DrawTransformMethods.SetDrawInfo;
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, Guid*, void**, int>)&ID2D1DrawTransformMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.GetInputCount;
|
||||
lpVtbl[6 + 4] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, RECT*, RECT*, uint, int>)&ID2D1DrawTransformMethods.MapOutputRectToInputRects;
|
||||
lpVtbl[6 + 5] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1DrawTransformMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[6 + 6] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, uint, RECT, RECT*, int>)&ID2D1DrawTransformMethods.MapInvalidRect;
|
||||
lpVtbl[6 + 7] = (delegate* unmanaged[MemberFunction]<PixelShaderEffect*, ID2D1DrawInfo*, int>)&ID2D1DrawTransformMethods.SetDrawInfo;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
+6
-5
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
@@ -125,28 +126,28 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
private static class ID2D1ResourceTextureManagerMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1ResourceTextureManagerImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
return @this->QueryInterface(riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1ResourceTextureManagerImpl* @this)
|
||||
{
|
||||
return @this->AddRef();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1ResourceTextureManagerImpl* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1ResourceTextureManager.Initialize"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int Initialize(
|
||||
D2D1ResourceTextureManagerImpl* @this,
|
||||
Guid* resourceId,
|
||||
@@ -165,7 +166,7 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1ResourceTextureManager.Update"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int Update(
|
||||
D2D1ResourceTextureManagerImpl* @this,
|
||||
uint* minimumExtents,
|
||||
|
||||
+6
-5
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.D2D1.Extensions;
|
||||
using ComputeSharp.D2D1.Shaders.Interop.Extensions;
|
||||
@@ -15,7 +16,7 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
private static unsafe class ID2D1ResourceTextureManagerInternalMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1ResourceTextureManagerImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
@this = (D2D1ResourceTextureManagerImpl*)&((void**)@this)[-1];
|
||||
@@ -24,7 +25,7 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1ResourceTextureManagerImpl* @this)
|
||||
{
|
||||
@this = (D2D1ResourceTextureManagerImpl*)&((void**)@this)[-1];
|
||||
@@ -33,7 +34,7 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1ResourceTextureManagerImpl* @this)
|
||||
{
|
||||
@this = (D2D1ResourceTextureManagerImpl*)&((void**)@this)[-1];
|
||||
@@ -42,7 +43,7 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1ResourceTextureManagerInternal.Initialize"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int Initialize(D2D1ResourceTextureManagerImpl* @this, ID2D1EffectContext* effectContext, uint* dimensions)
|
||||
{
|
||||
@this = (D2D1ResourceTextureManagerImpl*)&((void**)@this)[-1];
|
||||
@@ -105,7 +106,7 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1ResourceTextureManagerInternal.GetResourceTexture"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int GetResourceTexture(D2D1ResourceTextureManagerImpl* @this, ID2D1ResourceTexture** resourceTexture)
|
||||
{
|
||||
@this = (D2D1ResourceTextureManagerImpl*)&((void**)@this)[-1];
|
||||
|
||||
+10
-10
@@ -31,18 +31,18 @@ internal unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, D2D1_RESOURCE_TEXTURE_PROPERTIES*, byte*, uint*, uint, int>)&ID2D1ResourceTextureManagerMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint*, uint*, uint*, uint, byte*, uint, int>)&ID2D1ResourceTextureManagerMethods.Update;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, Guid*, D2D1_RESOURCE_TEXTURE_PROPERTIES*, byte*, uint*, uint, int>)&ID2D1ResourceTextureManagerMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, uint*, uint*, uint*, uint, byte*, uint, int>)&ID2D1ResourceTextureManagerMethods.Update;
|
||||
|
||||
// ID2D1ResourceTextureManagerInternal
|
||||
lpVtbl[5 + 0] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerInternalMethods.QueryInterface;
|
||||
lpVtbl[5 + 1] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.AddRef;
|
||||
lpVtbl[5 + 2] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.Release;
|
||||
lpVtbl[5 + 3] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, ID2D1EffectContext*, uint*, int>)&ID2D1ResourceTextureManagerInternalMethods.Initialize;
|
||||
lpVtbl[5 + 4] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, ID2D1ResourceTexture**, int>)&ID2D1ResourceTextureManagerInternalMethods.GetResourceTexture;
|
||||
lpVtbl[5 + 0] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerInternalMethods.QueryInterface;
|
||||
lpVtbl[5 + 1] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.AddRef;
|
||||
lpVtbl[5 + 2] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.Release;
|
||||
lpVtbl[5 + 3] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, ID2D1EffectContext*, uint*, int>)&ID2D1ResourceTextureManagerInternalMethods.Initialize;
|
||||
lpVtbl[5 + 4] = (delegate* unmanaged[MemberFunction]<D2D1ResourceTextureManagerImpl*, ID2D1ResourceTexture**, int>)&ID2D1ResourceTextureManagerInternalMethods.GetResourceTexture;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
+7
-6
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
@@ -13,28 +14,28 @@ partial struct D2D1DrawInfoUpdateContextImpl
|
||||
private static unsafe class ID2D1DrawInfoUpdateContextMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1DrawInfoUpdateContextImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
return @this->QueryInterface(riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
return @this->AddRef();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContext.GetConstantBufferSize"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int GetConstantBufferSize(D2D1DrawInfoUpdateContextImpl* @this, uint* size)
|
||||
{
|
||||
if (size is null)
|
||||
@@ -53,7 +54,7 @@ partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContext.GetConstantBuffer"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int GetConstantBuffer(D2D1DrawInfoUpdateContextImpl* @this, byte* buffer, uint bufferCount)
|
||||
{
|
||||
if (buffer is null)
|
||||
@@ -85,7 +86,7 @@ partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContext.SetConstantBuffer"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int SetConstantBuffer(D2D1DrawInfoUpdateContextImpl* @this, byte* buffer, uint bufferCount)
|
||||
{
|
||||
if (buffer is null)
|
||||
|
||||
+5
-4
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
@@ -22,7 +23,7 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
private static class ID2D1DrawInfoUpdateContextInternalMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1DrawInfoUpdateContextImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
@this = (D2D1DrawInfoUpdateContextImpl*)&((void**)@this)[-1];
|
||||
@@ -31,7 +32,7 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
@this = (D2D1DrawInfoUpdateContextImpl*)&((void**)@this)[-1];
|
||||
@@ -40,7 +41,7 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
@this = (D2D1DrawInfoUpdateContextImpl*)&((void**)@this)[-1];
|
||||
@@ -49,7 +50,7 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawInfoUpdateContextInternal.Close"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int Close(D2D1DrawInfoUpdateContextImpl* @this)
|
||||
{
|
||||
@this = (D2D1DrawInfoUpdateContextImpl*)&((void**)@this)[-1];
|
||||
|
||||
+10
-10
@@ -31,18 +31,18 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
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;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, uint*, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBufferSize;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBuffer;
|
||||
lpVtbl[5] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.SetConstantBuffer;
|
||||
|
||||
// ID2D1ResourceTextureManagerInternal
|
||||
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;
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged[MemberFunction]<D2D1DrawInfoUpdateContextImpl*, int>)&ID2D1DrawInfoUpdateContextInternalMethods.Close;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
+6
-6
@@ -17,28 +17,28 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
private static class ID2D1TransformMapperMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1TransformMapperImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
return @this->QueryInterface(riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1TransformMapperImpl* @this)
|
||||
{
|
||||
return @this->AddRef();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1TransformMapperImpl* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapInputRectsToOutputRect"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapInputRectsToOutputRect(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
ID2D1DrawInfoUpdateContext* d2D1DrawInfoUpdateContext,
|
||||
@@ -82,7 +82,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapOutputRectToInputRects"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapOutputRectToInputRects(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
RECT* outputRect,
|
||||
@@ -116,7 +116,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapInvalidRect"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int MapInvalidRect(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
uint inputIndex,
|
||||
|
||||
+5
-4
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
@@ -13,7 +14,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
private static class ID2D1TransformMapperInternalMethods
|
||||
{
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int QueryInterface(D2D1TransformMapperImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
@this = (D2D1TransformMapperImpl*)&((void**)@this)[-1];
|
||||
@@ -22,7 +23,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint AddRef(D2D1TransformMapperImpl* @this)
|
||||
{
|
||||
@this = (D2D1TransformMapperImpl*)&((void**)@this)[-1];
|
||||
@@ -31,7 +32,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static uint Release(D2D1TransformMapperImpl* @this)
|
||||
{
|
||||
@this = (D2D1TransformMapperImpl*)&((void**)@this)[-1];
|
||||
@@ -40,7 +41,7 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapperInternal.GetManagedWrapperHandle"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
public static int GetManagedWrapperHandle(D2D1TransformMapperImpl* @this, void** ppvHandle)
|
||||
{
|
||||
@this = (D2D1TransformMapperImpl*)&((void**)@this)[-1];
|
||||
|
||||
+10
-10
@@ -33,18 +33,18 @@ internal unsafe partial struct D2D1TransformMapperImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1TransformMapperImpl*, ID2D1DrawInfoUpdateContext*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1TransformMapperMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1TransformMapperImpl*, RECT*, RECT*, uint, int>)&ID2D1TransformMapperMethods.MapOutputRectToInputRects;
|
||||
lpVtbl[5] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint, RECT, RECT*, int>)&ID2D1TransformMapperMethods.MapInvalidRect;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, ID2D1DrawInfoUpdateContext*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1TransformMapperMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, RECT*, RECT*, uint, int>)&ID2D1TransformMapperMethods.MapOutputRectToInputRects;
|
||||
lpVtbl[5] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, uint, RECT, RECT*, int>)&ID2D1TransformMapperMethods.MapInvalidRect;
|
||||
|
||||
// ID2D1TransformMapperInternal
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<D2D1TransformMapperImpl*, void**, int>)&ID2D1TransformMapperInternalMethods.GetManagedWrapperHandle;
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged[MemberFunction]<D2D1TransformMapperImpl*, void**, int>)&ID2D1TransformMapperInternalMethods.GetManagedWrapperHandle;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ internal unsafe struct ID3D12AllocationImpl
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ID3D12AllocationImpl), sizeof(void*) * 4);
|
||||
|
||||
lpVtbl[0] = (delegate* unmanaged<ID3D12AllocationImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<ID3D12AllocationImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<ID3D12AllocationImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<ID3D12AllocationImpl*, ID3D12Resource**, int>)&GetD3D12Resource;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<ID3D12AllocationImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<ID3D12AllocationImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<ID3D12AllocationImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<ID3D12AllocationImpl*, ID3D12Resource**, int>)&GetD3D12Resource;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -99,7 +99,7 @@ internal unsafe struct ID3D12AllocationImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int QueryInterface(ID3D12AllocationImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
if (ppvObject is null)
|
||||
@@ -123,14 +123,14 @@ internal unsafe struct ID3D12AllocationImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint AddRef(ID3D12AllocationImpl* @this)
|
||||
{
|
||||
return (uint)Interlocked.Increment(ref @this->referenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(ID3D12AllocationImpl* @this)
|
||||
{
|
||||
uint referenceCount = (uint)Interlocked.Decrement(ref @this->referenceCount);
|
||||
@@ -154,7 +154,7 @@ internal unsafe struct ID3D12AllocationImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12Allocation.GetD3D12Resource"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int GetD3D12Resource(ID3D12AllocationImpl* @this, ID3D12Resource** resource)
|
||||
{
|
||||
if (resource is null)
|
||||
|
||||
@@ -30,10 +30,10 @@ internal unsafe struct ID3D12MemoryAllocatorFactoryImpl
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ID3D12MemoryAllocatorFactoryImpl), sizeof(void*) * 4);
|
||||
|
||||
lpVtbl[0] = (delegate* unmanaged<ID3D12MemoryAllocatorFactoryImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<ID3D12MemoryAllocatorFactoryImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<ID3D12MemoryAllocatorFactoryImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<ID3D12MemoryAllocatorFactoryImpl*, ID3D12Device*, IDXGIAdapter*, ID3D12MemoryAllocator**, int>)&CreateAllocator;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorFactoryImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorFactoryImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorFactoryImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorFactoryImpl*, ID3D12Device*, IDXGIAdapter*, ID3D12MemoryAllocator**, int>)&CreateAllocator;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -115,28 +115,28 @@ internal unsafe struct ID3D12MemoryAllocatorFactoryImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int QueryInterface(ID3D12MemoryAllocatorFactoryImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
return @this->QueryInterface(riid, ppvObject);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint AddRef(ID3D12MemoryAllocatorFactoryImpl* @this)
|
||||
{
|
||||
return (uint)Interlocked.Increment(ref @this->referenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(ID3D12MemoryAllocatorFactoryImpl* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12MemoryAllocator.AllocateResource"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int CreateAllocator(
|
||||
ID3D12MemoryAllocatorFactoryImpl* @this,
|
||||
ID3D12Device* device,
|
||||
|
||||
@@ -30,10 +30,10 @@ internal unsafe struct ID3D12MemoryAllocatorImpl
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ID3D12MemoryAllocator), sizeof(void*) * 4);
|
||||
|
||||
lpVtbl[0] = (delegate* unmanaged<ID3D12MemoryAllocatorImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<ID3D12MemoryAllocatorImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<ID3D12MemoryAllocatorImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<ID3D12MemoryAllocatorImpl*, D3D12_RESOURCE_DESC*, D3D12_HEAP_TYPE, D3D12_RESOURCE_STATES, BOOL, ID3D12Allocation**, int>)&AllocateResource;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorImpl*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorImpl*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorImpl*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<ID3D12MemoryAllocatorImpl*, D3D12_RESOURCE_DESC*, D3D12_HEAP_TYPE, D3D12_RESOURCE_STATES, BOOL, ID3D12Allocation**, int>)&AllocateResource;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ internal unsafe struct ID3D12MemoryAllocatorImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int QueryInterface(ID3D12MemoryAllocatorImpl* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
if (ppvObject is null)
|
||||
@@ -147,21 +147,21 @@ internal unsafe struct ID3D12MemoryAllocatorImpl
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint AddRef(ID3D12MemoryAllocatorImpl* @this)
|
||||
{
|
||||
return @this->AddRef();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(ID3D12MemoryAllocatorImpl* @this)
|
||||
{
|
||||
return @this->Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ID3D12MemoryAllocator.AllocateResource"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int AllocateResource(
|
||||
ID3D12MemoryAllocatorImpl* @this,
|
||||
D3D12_RESOURCE_DESC* resourceDescription,
|
||||
|
||||
@@ -50,20 +50,20 @@ unsafe partial class IWICStreamExtensions
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(IBufferWriterWrapper), sizeof(void*) * 14);
|
||||
|
||||
lpVtbl[0] = (delegate* unmanaged<IBufferWriterWrapper*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<IBufferWriterWrapper*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<IBufferWriterWrapper*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<IBufferWriterWrapper*, void*, uint, uint*, HRESULT>)&Read;
|
||||
lpVtbl[4] = (delegate* unmanaged<IBufferWriterWrapper*, void*, uint, uint*, HRESULT>)&Write;
|
||||
lpVtbl[5] = (delegate* unmanaged<IBufferWriterWrapper*, LARGE_INTEGER, uint, ULARGE_INTEGER*, HRESULT>)&Seek;
|
||||
lpVtbl[6] = (delegate* unmanaged<IBufferWriterWrapper*, ULARGE_INTEGER, HRESULT>)&SetSize;
|
||||
lpVtbl[7] = (delegate* unmanaged<IBufferWriterWrapper*, IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*, HRESULT>)&CopyTo;
|
||||
lpVtbl[8] = (delegate* unmanaged<IBufferWriterWrapper*, uint, HRESULT>)&Commit;
|
||||
lpVtbl[9] = (delegate* unmanaged<IBufferWriterWrapper*, HRESULT>)&Revert;
|
||||
lpVtbl[10] = (delegate* unmanaged<IBufferWriterWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&LockRegion;
|
||||
lpVtbl[11] = (delegate* unmanaged<IBufferWriterWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&UnlockRegion;
|
||||
lpVtbl[12] = (delegate* unmanaged<IBufferWriterWrapper*, STATSTG*, uint, HRESULT>)&Stat;
|
||||
lpVtbl[13] = (delegate* unmanaged<IBufferWriterWrapper*, IStream**, HRESULT>)&Clone;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, void*, uint, uint*, HRESULT>)&Read;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, void*, uint, uint*, HRESULT>)&Write;
|
||||
lpVtbl[5] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, LARGE_INTEGER, uint, ULARGE_INTEGER*, HRESULT>)&Seek;
|
||||
lpVtbl[6] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, ULARGE_INTEGER, HRESULT>)&SetSize;
|
||||
lpVtbl[7] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*, HRESULT>)&CopyTo;
|
||||
lpVtbl[8] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, uint, HRESULT>)&Commit;
|
||||
lpVtbl[9] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, HRESULT>)&Revert;
|
||||
lpVtbl[10] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&LockRegion;
|
||||
lpVtbl[11] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&UnlockRegion;
|
||||
lpVtbl[12] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, STATSTG*, uint, HRESULT>)&Stat;
|
||||
lpVtbl[13] = (delegate* unmanaged[MemberFunction]<IBufferWriterWrapper*, IStream**, HRESULT>)&Clone;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.QueryInterface(Guid*, void**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int QueryInterface(IBufferWriterWrapper* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
if (ppvObject is null)
|
||||
@@ -153,14 +153,14 @@ unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint AddRef(IBufferWriterWrapper* @this)
|
||||
{
|
||||
return (uint)Interlocked.Increment(ref @this->referenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(IBufferWriterWrapper* @this)
|
||||
{
|
||||
uint referenceCount = (uint)Interlocked.Decrement(ref @this->referenceCount);
|
||||
@@ -176,14 +176,14 @@ unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Read(void*, uint, uint*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Read(IBufferWriterWrapper* @this, void* pv, uint cb, uint* pcbRead)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Write(void*, uint, uint*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Write(IBufferWriterWrapper* @this, void* pv, uint cb, uint* pcbWritten)
|
||||
{
|
||||
if (pv == null)
|
||||
@@ -219,56 +219,56 @@ unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Seek(LARGE_INTEGER, uint, ULARGE_INTEGER*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Seek(IBufferWriterWrapper* @this, LARGE_INTEGER dlibMove, uint dwOrigin, ULARGE_INTEGER* plibNewPosition)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.SetSize(ULARGE_INTEGER)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT SetSize(IBufferWriterWrapper* @this, ULARGE_INTEGER libNewSize)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT CopyTo(IBufferWriterWrapper* @this, IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Commit(uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Commit(IBufferWriterWrapper* @this, uint grfCommitFlags)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Revert"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Revert(IBufferWriterWrapper* @this)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT LockRegion(IBufferWriterWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT UnlockRegion(IBufferWriterWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Stat(STATSTG*, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Stat(IBufferWriterWrapper* @this, STATSTG* pstatstg, uint grfStatFlag)
|
||||
{
|
||||
if (pstatstg == null)
|
||||
@@ -300,7 +300,7 @@ unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Clone(IStream**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Clone(IBufferWriterWrapper* @this, IStream** ppstm)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
|
||||
@@ -52,20 +52,20 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
{
|
||||
void** lpVtbl = (void**)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(IStreamWrapper), sizeof(void*) * 14);
|
||||
|
||||
lpVtbl[0] = (delegate* unmanaged<IStreamWrapper*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<IStreamWrapper*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<IStreamWrapper*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<IStreamWrapper*, void*, uint, uint*, HRESULT>)&Read;
|
||||
lpVtbl[4] = (delegate* unmanaged<IStreamWrapper*, void*, uint, uint*, HRESULT>)&Write;
|
||||
lpVtbl[5] = (delegate* unmanaged<IStreamWrapper*, LARGE_INTEGER, uint, ULARGE_INTEGER*, HRESULT>)&Seek;
|
||||
lpVtbl[6] = (delegate* unmanaged<IStreamWrapper*, ULARGE_INTEGER, HRESULT>)&SetSize;
|
||||
lpVtbl[7] = (delegate* unmanaged<IStreamWrapper*, IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*, HRESULT>)&CopyTo;
|
||||
lpVtbl[8] = (delegate* unmanaged<IStreamWrapper*, uint, HRESULT>)&Commit;
|
||||
lpVtbl[9] = (delegate* unmanaged<IStreamWrapper*, HRESULT>)&Revert;
|
||||
lpVtbl[10] = (delegate* unmanaged<IStreamWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&LockRegion;
|
||||
lpVtbl[11] = (delegate* unmanaged<IStreamWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&UnlockRegion;
|
||||
lpVtbl[12] = (delegate* unmanaged<IStreamWrapper*, STATSTG*, uint, HRESULT>)&Stat;
|
||||
lpVtbl[13] = (delegate* unmanaged<IStreamWrapper*, IStream**, HRESULT>)&Clone;
|
||||
lpVtbl[0] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, Guid*, void**, int>)&QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, uint>)&AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, uint>)&Release;
|
||||
lpVtbl[3] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, void*, uint, uint*, HRESULT>)&Read;
|
||||
lpVtbl[4] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, void*, uint, uint*, HRESULT>)&Write;
|
||||
lpVtbl[5] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, LARGE_INTEGER, uint, ULARGE_INTEGER*, HRESULT>)&Seek;
|
||||
lpVtbl[6] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, ULARGE_INTEGER, HRESULT>)&SetSize;
|
||||
lpVtbl[7] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*, HRESULT>)&CopyTo;
|
||||
lpVtbl[8] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, uint, HRESULT>)&Commit;
|
||||
lpVtbl[9] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, HRESULT>)&Revert;
|
||||
lpVtbl[10] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&LockRegion;
|
||||
lpVtbl[11] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, ULARGE_INTEGER, ULARGE_INTEGER, uint, HRESULT>)&UnlockRegion;
|
||||
lpVtbl[12] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, STATSTG*, uint, HRESULT>)&Stat;
|
||||
lpVtbl[13] = (delegate* unmanaged[MemberFunction]<IStreamWrapper*, IStream**, HRESULT>)&Clone;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.QueryInterface(Guid*, void**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int QueryInterface(IStreamWrapper* @this, Guid* riid, void** ppvObject)
|
||||
{
|
||||
if (ppvObject is null)
|
||||
@@ -155,14 +155,14 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.AddRef"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint AddRef(IStreamWrapper* @this)
|
||||
{
|
||||
return (uint)Interlocked.Increment(ref @this->referenceCount);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(IStreamWrapper* @this)
|
||||
{
|
||||
uint referenceCount = (uint)Interlocked.Decrement(ref @this->referenceCount);
|
||||
@@ -178,7 +178,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Read(void*, uint, uint*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Read(IStreamWrapper* @this, void* pv, uint cb, uint* pcbRead)
|
||||
{
|
||||
if (pv == null)
|
||||
@@ -226,7 +226,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Write(void*, uint, uint*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Write(IStreamWrapper* @this, void* pv, uint cb, uint* pcbWritten)
|
||||
{
|
||||
if (pv == null)
|
||||
@@ -262,7 +262,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Seek(LARGE_INTEGER, uint, ULARGE_INTEGER*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Seek(IStreamWrapper* @this, LARGE_INTEGER dlibMove, uint dwOrigin, ULARGE_INTEGER* plibNewPosition)
|
||||
{
|
||||
SeekOrigin origin = (SeekOrigin)dwOrigin;
|
||||
@@ -300,7 +300,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.SetSize(ULARGE_INTEGER)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT SetSize(IStreamWrapper* @this, ULARGE_INTEGER libNewSize)
|
||||
{
|
||||
if (libNewSize.QuadPart > long.MaxValue)
|
||||
@@ -321,14 +321,14 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.CopyTo(IStream*, ULARGE_INTEGER, ULARGE_INTEGER*, ULARGE_INTEGER*)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT CopyTo(IStreamWrapper* @this, IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Commit(uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Commit(IStreamWrapper* @this, uint grfCommitFlags)
|
||||
{
|
||||
try
|
||||
@@ -344,28 +344,28 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Revert"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Revert(IStreamWrapper* @this)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.LockRegion(ULARGE_INTEGER, ULARGE_INTEGER, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT LockRegion(IStreamWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.UnlockRegion(ULARGE_INTEGER, ULARGE_INTEGER, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT UnlockRegion(IStreamWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Stat(STATSTG*, uint)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Stat(IStreamWrapper* @this, STATSTG* pstatstg, uint grfStatFlag)
|
||||
{
|
||||
if (pstatstg == null)
|
||||
@@ -433,7 +433,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IStream.Clone(IStream**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static HRESULT Clone(IStreamWrapper* @this, IStream** ppstm)
|
||||
{
|
||||
return STG_E_INVALIDFUNCTION;
|
||||
|
||||
@@ -116,10 +116,10 @@ partial class DeviceHelper
|
||||
|
||||
new Span<IntPtr>(lpVtbl, 30).Clear();
|
||||
|
||||
lpVtbl[2] = (delegate* unmanaged<IDXGIFactory4As6Backcompat*, uint>)&Release;
|
||||
lpVtbl[7] = (delegate* unmanaged<IDXGIFactory4As6Backcompat*, uint, IDXGIAdapter**, int>)&EnumAdapters;
|
||||
lpVtbl[27] = (delegate* unmanaged<IDXGIFactory4As6Backcompat*, Guid*, void**, int>)&EnumWarpAdapter;
|
||||
lpVtbl[29] = (delegate* unmanaged<IDXGIFactory4As6Backcompat*, uint, DXGI_GPU_PREFERENCE, Guid*, void**, int>)&EnumAdapterByGpuPreference;
|
||||
lpVtbl[2] = (delegate* unmanaged[MemberFunction]<IDXGIFactory4As6Backcompat*, uint>)&Release;
|
||||
lpVtbl[7] = (delegate* unmanaged[MemberFunction]<IDXGIFactory4As6Backcompat*, uint, IDXGIAdapter**, int>)&EnumAdapters;
|
||||
lpVtbl[27] = (delegate* unmanaged[MemberFunction]<IDXGIFactory4As6Backcompat*, Guid*, void**, int>)&EnumWarpAdapter;
|
||||
lpVtbl[29] = (delegate* unmanaged[MemberFunction]<IDXGIFactory4As6Backcompat*, uint, DXGI_GPU_PREFERENCE, Guid*, void**, int>)&EnumAdapterByGpuPreference;
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ partial class DeviceHelper
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static uint Release(IDXGIFactory4As6Backcompat* @this)
|
||||
{
|
||||
@this->dxgiFactory4.Dispose();
|
||||
@@ -161,21 +161,21 @@ partial class DeviceHelper
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory6.EnumAdapters(uint, IDXGIAdapter**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int EnumAdapters(IDXGIFactory4As6Backcompat* @this, uint Adapter, IDXGIAdapter** ppAdapter)
|
||||
{
|
||||
return @this->dxgiFactory4.Get()->EnumAdapters(Adapter, ppAdapter);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory6.EnumWarpAdapter(Guid*, void**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int EnumWarpAdapter(IDXGIFactory4As6Backcompat* @this, Guid* riid, void** ppvAdapter)
|
||||
{
|
||||
return @this->dxgiFactory4.Get()->EnumWarpAdapter(riid, ppvAdapter);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory6.EnumAdapterByGpuPreference(uint, DXGI_GPU_PREFERENCE, Guid*, void**)"/>
|
||||
[UnmanagedCallersOnly]
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvMemberFunction)])]
|
||||
private static int EnumAdapterByGpuPreference(IDXGIFactory4As6Backcompat* @this, uint Adapter, DXGI_GPU_PREFERENCE GpuPreference, Guid* riid, void** ppvAdapter)
|
||||
{
|
||||
return @this->dxgiFactory4.Get()->EnumAdapters1(Adapter, (IDXGIAdapter1**)ppvAdapter);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする