forked from dotnet/Silk.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes and resolving CR feedbacks
- Loading branch information
Showing
25 changed files
with
3,779 additions
and
3,658 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
222 changes: 111 additions & 111 deletions
222
src/Core/Silk.NET.Core.Win32Extras/Structs/DispatchVtblExtensions.gen.cs
Large diffs are not rendered by default.
Oops, something went wrong.
150 changes: 150 additions & 0 deletions
150
src/Core/Silk.NET.Core.Win32Extras/Structs/DummyHICONIncluderVtblExtensions.gen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Runtime.CompilerServices; | ||
using System.Text; | ||
using Silk.NET.Core; | ||
using Silk.NET.Core.Native; | ||
using Silk.NET.Core.Attributes; | ||
using Silk.NET.Core.Contexts; | ||
using Silk.NET.Core.Loader; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace Silk.NET.Core.Win32Extras; | ||
|
||
public unsafe static class DummyHICONIncluderVtblExtensions | ||
{ | ||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, Guid* riid, void** ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, Guid*, void**, int>)@this->LpVtbl[0])(@this, riid, ppvObject); | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, Guid* riid, ref void* ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
fixed (void** ppvObjectPtr = &ppvObject) | ||
{ | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, Guid*, void**, int>)@this->LpVtbl[0])(@this, riid, ppvObjectPtr); | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, ref Guid riid, void** ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
fixed (Guid* riidPtr = &riid) | ||
{ | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, Guid*, void**, int>)@this->LpVtbl[0])(@this, riidPtr, ppvObject); | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, ref Guid riid, ref void* ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
fixed (Guid* riidPtr = &riid) | ||
{ | ||
fixed (void** ppvObjectPtr = &ppvObject) | ||
{ | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, Guid*, void**, int>)@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); | ||
} | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static uint AddRef(this ComPtr<IDummyHICONIncluder> thisVtbl) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
uint ret = default; | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, uint>)@this->LpVtbl[1])(@this); | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static uint Release(this ComPtr<IDummyHICONIncluder> thisVtbl) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
uint ret = default; | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, uint>)@this->LpVtbl[2])(@this); | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int Dummy(this ComPtr<IDummyHICONIncluder> thisVtbl, void* h1, nint h2) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, void*, nint, int>)@this->LpVtbl[3])(@this, h1, h2); | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static int Dummy<T0>(this ComPtr<IDummyHICONIncluder> thisVtbl, ref T0 h1, nint h2) where T0 : unmanaged | ||
{ | ||
var @this = thisVtbl.Handle; | ||
int ret = default; | ||
fixed (void* h1Ptr = &h1) | ||
{ | ||
ret = ((delegate* unmanaged[Cdecl]<IDummyHICONIncluder*, void*, nint, int>)@this->LpVtbl[3])(@this, h1Ptr, h2); | ||
} | ||
return ret; | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static int QueryInterface<TI0>(this ComPtr<IDummyHICONIncluder> thisVtbl, out ComPtr<TI0> ppvObject) where TI0 : unmanaged, IComVtbl<TI0> | ||
{ | ||
var @this = thisVtbl.Handle; | ||
// ComPtrOverloader | ||
ppvObject = default; | ||
return @this->QueryInterface(SilkMarshal.GuidPtrOf<TI0>(), (void**) ppvObject.GetAddressOf()); | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, Span<Guid> riid, void** ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
// SpanOverloader | ||
return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static unsafe int QueryInterface(this ComPtr<IDummyHICONIncluder> thisVtbl, Span<Guid> riid, ref void* ppvObject) | ||
{ | ||
var @this = thisVtbl.Handle; | ||
// SpanOverloader | ||
return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static int Dummy<T0>(this ComPtr<IDummyHICONIncluder> thisVtbl, Span<T0> h1, nint h2) where T0 : unmanaged | ||
{ | ||
var @this = thisVtbl.Handle; | ||
// SpanOverloader | ||
return @this->Dummy(ref h1.GetPinnableReference(), h2); | ||
} | ||
|
||
/// <summary>To be documented.</summary> | ||
public static ComPtr<TI0> QueryInterface<TI0>(this ComPtr<IDummyHICONIncluder> thisVtbl) where TI0 : unmanaged, IComVtbl<TI0> | ||
{ | ||
var @this = thisVtbl.Handle; | ||
// NonKhrReturnTypeOverloader | ||
SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr<TI0> silkRet)); | ||
return silkRet; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.