Skip to content

Commit 54322bf

Browse files
committed
Add DllImport vtable
1 parent cc53cf4 commit 54322bf

4 files changed

Lines changed: 26616 additions & 0 deletions

File tree

.silktouch/d48a9fc4a502f7c6.stout

0 Bytes
Binary file not shown.

generator.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@
208208
},
209209
"AddVTables": {
210210
"VTables": [
211+
{
212+
"Kind": "DllImport"
213+
},
211214
{
212215
"Kind": "ThisThread",
213216
"IsDefault": true

sources/Vulkan/Vulkan/Vk.gen.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ namespace Silk.NET.Vulkan;
1212

1313
partial class Vk(INativeContext nativeContext) : IDisposable
1414
{
15+
public partial class DllImport
16+
{
17+
static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly());
18+
}
19+
1520
public partial class ThisThread : IVk.Static
1621
{
1722
public static ThreadLocal<IVk> Underlying { get; } = new();

0 commit comments

Comments
 (0)