Skip to content

Commit 9ec21fa

Browse files
authored
Fix vtable indices being incorrect (#1428)
This caused DWrite, DComp, and D2D to not function properly
1 parent 2d33443 commit 9ec21fa

File tree

199 files changed

+7657
-6604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+7657
-6604
lines changed

build/cache/cl.json.gz

0 Bytes
Binary file not shown.

build/cache/d2d.json.gz

0 Bytes
Binary file not shown.

build/cache/dcomp.json.gz

7 Bytes
Binary file not shown.

build/cache/dstorage.json.gz

531 Bytes
Binary file not shown.

build/cache/dwrite.json.gz

0 Bytes
Binary file not shown.

src/Core/Silk.NET.BuildTools/Cpp/Clang.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ Struct @struct
17921792
Name = name ?? Naming.TranslateLite
17931793
(Naming.TrimName(cxxMethodDecl.Name, task), task.FunctionPrefix),
17941794
NativeName = cxxMethodDecl.Name,
1795-
VtblIndex = vtblIndex,
1795+
VtblIndex = (int) cxxMethodDecl.VtblIndex,
17961796
ReturnType = GetType(cxxMethodDecl.ReturnType, out _, ref _f, out _),
17971797
Parameters = cxxMethodDecl.Parameters.Select
17981798
(

src/Microsoft/Silk.NET.Direct2D/Direct2D/Structs/D2D1CommandSink3VtblExtensions.gen.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink3> thisVtbl
15531553
{
15541554
var @this = thisVtbl.Handle;
15551555
int ret = default;
1556-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1556+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15571557
return ret;
15581558
}
15591559

@@ -1564,7 +1564,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink3> thisVtbl
15641564
int ret = default;
15651565
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15661566
{
1567-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1567+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15681568
}
15691569
return ret;
15701570
}
@@ -1576,7 +1576,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink3> thisVtbl
15761576
int ret = default;
15771577
fixed (ID2D1SpriteBatch* spriteBatchPtr = &spriteBatch)
15781578
{
1579-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1579+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15801580
}
15811581
return ret;
15821582
}
@@ -1590,7 +1590,7 @@ public static int DrawSpriteBatch(this ComPtr<ID2D1CommandSink3> thisVtbl, ref I
15901590
{
15911591
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15921592
{
1593-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1593+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink3*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15941594
}
15951595
}
15961596
return ret;

src/Microsoft/Silk.NET.Direct2D/Direct2D/Structs/D2D1CommandSink4VtblExtensions.gen.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink4> thisVtbl
15531553
{
15541554
var @this = thisVtbl.Handle;
15551555
int ret = default;
1556-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1556+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15571557
return ret;
15581558
}
15591559

@@ -1564,7 +1564,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink4> thisVtbl
15641564
int ret = default;
15651565
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15661566
{
1567-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1567+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15681568
}
15691569
return ret;
15701570
}
@@ -1576,7 +1576,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink4> thisVtbl
15761576
int ret = default;
15771577
fixed (ID2D1SpriteBatch* spriteBatchPtr = &spriteBatch)
15781578
{
1579-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1579+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15801580
}
15811581
return ret;
15821582
}
@@ -1590,7 +1590,7 @@ public static int DrawSpriteBatch(this ComPtr<ID2D1CommandSink4> thisVtbl, ref I
15901590
{
15911591
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15921592
{
1593-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1593+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15941594
}
15951595
}
15961596
return ret;
@@ -1601,7 +1601,7 @@ public static int SetPrimitiveBlend2(this ComPtr<ID2D1CommandSink4> thisVtbl, Pr
16011601
{
16021602
var @this = thisVtbl.Handle;
16031603
int ret = default;
1604-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, PrimitiveBlend, int>)@this->LpVtbl[32])(@this, primitiveBlend);
1604+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink4*, PrimitiveBlend, int>)@this->LpVtbl[33])(@this, primitiveBlend);
16051605
return ret;
16061606
}
16071607

src/Microsoft/Silk.NET.Direct2D/Direct2D/Structs/D2D1CommandSink5VtblExtensions.gen.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink5> thisVtbl
15531553
{
15541554
var @this = thisVtbl.Handle;
15551555
int ret = default;
1556-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1556+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15571557
return ret;
15581558
}
15591559

@@ -1564,7 +1564,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink5> thisVtbl
15641564
int ret = default;
15651565
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15661566
{
1567-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1567+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatch, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15681568
}
15691569
return ret;
15701570
}
@@ -1576,7 +1576,7 @@ public static unsafe int DrawSpriteBatch(this ComPtr<ID2D1CommandSink5> thisVtbl
15761576
int ret = default;
15771577
fixed (ID2D1SpriteBatch* spriteBatchPtr = &spriteBatch)
15781578
{
1579-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
1579+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmap, interpolationMode, spriteOptions);
15801580
}
15811581
return ret;
15821582
}
@@ -1590,7 +1590,7 @@ public static int DrawSpriteBatch(this ComPtr<ID2D1CommandSink5> thisVtbl, ref I
15901590
{
15911591
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
15921592
{
1593-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[31])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
1593+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1SpriteBatch*, uint, uint, ID2D1Bitmap*, BitmapInterpolationMode, SpriteOptions, int>)@this->LpVtbl[32])(@this, spriteBatchPtr, startIndex, spriteCount, bitmapPtr, interpolationMode, spriteOptions);
15941594
}
15951595
}
15961596
return ret;
@@ -1601,7 +1601,7 @@ public static int SetPrimitiveBlend2(this ComPtr<ID2D1CommandSink5> thisVtbl, Pr
16011601
{
16021602
var @this = thisVtbl.Handle;
16031603
int ret = default;
1604-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, PrimitiveBlend, int>)@this->LpVtbl[32])(@this, primitiveBlend);
1604+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, PrimitiveBlend, int>)@this->LpVtbl[33])(@this, primitiveBlend);
16051605
return ret;
16061606
}
16071607

@@ -1610,7 +1610,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ID2
16101610
{
16111611
var @this = thisVtbl.Handle;
16121612
int ret = default;
1613-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, image, blendMode, targetOffset, imageRectangle, interpolationMode);
1613+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, image, blendMode, targetOffset, imageRectangle, interpolationMode);
16141614
return ret;
16151615
}
16161616

@@ -1621,7 +1621,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ID2
16211621
int ret = default;
16221622
fixed (Silk.NET.Maths.Box2D<float>* imageRectanglePtr = &imageRectangle)
16231623
{
1624-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, image, blendMode, targetOffset, imageRectanglePtr, interpolationMode);
1624+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, image, blendMode, targetOffset, imageRectanglePtr, interpolationMode);
16251625
}
16261626
return ret;
16271627
}
@@ -1633,7 +1633,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ID2
16331633
int ret = default;
16341634
fixed (Silk.NET.Maths.Vector2D<float>* targetOffsetPtr = &targetOffset)
16351635
{
1636-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, image, blendMode, targetOffsetPtr, imageRectangle, interpolationMode);
1636+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, image, blendMode, targetOffsetPtr, imageRectangle, interpolationMode);
16371637
}
16381638
return ret;
16391639
}
@@ -1647,7 +1647,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ID2
16471647
{
16481648
fixed (Silk.NET.Maths.Box2D<float>* imageRectanglePtr = &imageRectangle)
16491649
{
1650-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, image, blendMode, targetOffsetPtr, imageRectanglePtr, interpolationMode);
1650+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, image, blendMode, targetOffsetPtr, imageRectanglePtr, interpolationMode);
16511651
}
16521652
}
16531653
return ret;
@@ -1660,7 +1660,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ref
16601660
int ret = default;
16611661
fixed (ID2D1Image* imagePtr = &image)
16621662
{
1663-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, imagePtr, blendMode, targetOffset, imageRectangle, interpolationMode);
1663+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, imagePtr, blendMode, targetOffset, imageRectangle, interpolationMode);
16641664
}
16651665
return ret;
16661666
}
@@ -1674,7 +1674,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ref
16741674
{
16751675
fixed (Silk.NET.Maths.Box2D<float>* imageRectanglePtr = &imageRectangle)
16761676
{
1677-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, imagePtr, blendMode, targetOffset, imageRectanglePtr, interpolationMode);
1677+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, imagePtr, blendMode, targetOffset, imageRectanglePtr, interpolationMode);
16781678
}
16791679
}
16801680
return ret;
@@ -1689,7 +1689,7 @@ public static unsafe int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ref
16891689
{
16901690
fixed (Silk.NET.Maths.Vector2D<float>* targetOffsetPtr = &targetOffset)
16911691
{
1692-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, imagePtr, blendMode, targetOffsetPtr, imageRectangle, interpolationMode);
1692+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, imagePtr, blendMode, targetOffsetPtr, imageRectangle, interpolationMode);
16931693
}
16941694
}
16951695
return ret;
@@ -1706,7 +1706,7 @@ public static int BlendImage(this ComPtr<ID2D1CommandSink5> thisVtbl, ref ID2D1I
17061706
{
17071707
fixed (Silk.NET.Maths.Box2D<float>* imageRectanglePtr = &imageRectangle)
17081708
{
1709-
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[33])(@this, imagePtr, blendMode, targetOffsetPtr, imageRectanglePtr, interpolationMode);
1709+
ret = ((delegate* unmanaged[Stdcall]<ID2D1CommandSink5*, ID2D1Image*, BlendMode, Silk.NET.Maths.Vector2D<float>*, Silk.NET.Maths.Box2D<float>*, InterpolationMode, int>)@this->LpVtbl[34])(@this, imagePtr, blendMode, targetOffsetPtr, imageRectanglePtr, interpolationMode);
17101710
}
17111711
}
17121712
}

src/Microsoft/Silk.NET.Direct2D/Direct2D/Structs/D2D1Device2VtblExtensions.gen.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static void SetRenderingPriority(this ComPtr<ID2D1Device2> thisVtbl, Rend
213213
public static unsafe void FlushDeviceContexts(this ComPtr<ID2D1Device2> thisVtbl, ID2D1Bitmap* bitmap)
214214
{
215215
var @this = thisVtbl.Handle;
216-
((delegate* unmanaged[Stdcall]<ID2D1Device2*, ID2D1Bitmap*, void>)@this->LpVtbl[11])(@this, bitmap);
216+
((delegate* unmanaged[Stdcall]<ID2D1Device2*, ID2D1Bitmap*, void>)@this->LpVtbl[13])(@this, bitmap);
217217
}
218218

219219
/// <summary>To be documented.</summary>
@@ -222,7 +222,7 @@ public static void FlushDeviceContexts(this ComPtr<ID2D1Device2> thisVtbl, ref I
222222
var @this = thisVtbl.Handle;
223223
fixed (ID2D1Bitmap* bitmapPtr = &bitmap)
224224
{
225-
((delegate* unmanaged[Stdcall]<ID2D1Device2*, ID2D1Bitmap*, void>)@this->LpVtbl[11])(@this, bitmapPtr);
225+
((delegate* unmanaged[Stdcall]<ID2D1Device2*, ID2D1Bitmap*, void>)@this->LpVtbl[13])(@this, bitmapPtr);
226226
}
227227
}
228228

@@ -231,7 +231,7 @@ public static unsafe int GetDxgiDevice(this ComPtr<ID2D1Device2> thisVtbl, Silk.
231231
{
232232
var @this = thisVtbl.Handle;
233233
int ret = default;
234-
ret = ((delegate* unmanaged[Stdcall]<ID2D1Device2*, Silk.NET.DXGI.IDXGIDevice**, int>)@this->LpVtbl[12])(@this, dxgiDevice);
234+
ret = ((delegate* unmanaged[Stdcall]<ID2D1Device2*, Silk.NET.DXGI.IDXGIDevice**, int>)@this->LpVtbl[14])(@this, dxgiDevice);
235235
return ret;
236236
}
237237

@@ -242,7 +242,7 @@ public static unsafe int GetDxgiDevice(this ComPtr<ID2D1Device2> thisVtbl, ref S
242242
int ret = default;
243243
fixed (Silk.NET.DXGI.IDXGIDevice** dxgiDevicePtr = &dxgiDevice)
244244
{
245-
ret = ((delegate* unmanaged[Stdcall]<ID2D1Device2*, Silk.NET.DXGI.IDXGIDevice**, int>)@this->LpVtbl[12])(@this, dxgiDevicePtr);
245+
ret = ((delegate* unmanaged[Stdcall]<ID2D1Device2*, Silk.NET.DXGI.IDXGIDevice**, int>)@this->LpVtbl[14])(@this, dxgiDevicePtr);
246246
}
247247
return ret;
248248
}

0 commit comments

Comments
 (0)