diff --git a/src/Vortice.Win32/ComPtr.cs b/src/Vortice.Win32/ComPtr.cs
index fd8e522..fe72bd6 100644
--- a/src/Vortice.Win32/ComPtr.cs
+++ b/src/Vortice.Win32/ComPtr.cs
@@ -13,7 +13,7 @@ namespace Win32;
/// The type to wrap in the current instance.
/// While this type is not marked as so that it can also be used in fields, make sure to keep the reference counts properly tracked if you do store instances on the heap.
public unsafe struct ComPtr : IDisposable
- where T : unmanaged, IUnknown.Interface
+ where T : unmanaged
{
/// The raw pointer to a COM object, if existing.
private T* ptr_;
@@ -52,9 +52,9 @@ public unsafe struct ComPtr : IDisposable
/// The result of for the target type .
/// This method will automatically release the target COM object pointed to by , if any.
public readonly HResult As(ComPtr* p)
- where U : unmanaged, IUnknown.Interface
+ where U : unmanaged
{
- return ptr_->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf());
+ return ((IUnknown*)ptr_)->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf());
}
/// Converts the current object reference to type and assigns that to a target value.
@@ -63,10 +63,10 @@ public unsafe struct ComPtr : IDisposable
/// The result of for the target type .
/// This method will automatically release the target COM object pointed to by , if any.
public readonly HResult As(ref ComPtr other)
- where U : unmanaged, IUnknown.Interface
+ where U : unmanaged
{
U* ptr;
- HResult result = ptr_->QueryInterface(__uuidof(), (void**)&ptr);
+ HResult result = ((IUnknown*)ptr_)->QueryInterface(__uuidof(), (void**)&ptr);
other.Attach(ptr);
return result;
@@ -79,7 +79,7 @@ public unsafe struct ComPtr : IDisposable
/// This method will automatically release the target COM object pointed to by , if any.
public readonly HResult AsIID(Guid* riid, ComPtr* other)
{
- return ptr_->QueryInterface(riid, (void**)other->ReleaseAndGetAddressOf());
+ return ((IUnknown*)ptr_)->QueryInterface(riid, (void**)other->ReleaseAndGetAddressOf());
}
/// Converts the current object reference to a type indicated by the given IID and assigns that to a target value.
@@ -90,7 +90,7 @@ public unsafe struct ComPtr : IDisposable
public readonly HResult AsIID(Guid* riid, ref ComPtr other)
{
IUnknown* ptr;
- HResult result = ptr_->QueryInterface(riid, (void**)&ptr);
+ HResult result = ((IUnknown*)ptr_)->QueryInterface(riid, (void**)&ptr);
other.Attach(ptr);
return result;
@@ -103,7 +103,7 @@ public unsafe struct ComPtr : IDisposable
{
if (ptr_ != null)
{
- var @ref = ptr_->Release();
+ var @ref = ((IUnknown*)ptr_)->Release();
Debug.Assert((@ref != 0) || (ptr_ != other));
}
ptr_ = other;
@@ -153,28 +153,28 @@ public unsafe struct ComPtr : IDisposable
/// The target raw pointer to copy the address of the current COM object to.
/// The result of for the target type .
public readonly HResult CopyTo(U** ptr)
- where U : unmanaged, IUnknown.Interface
+ where U : unmanaged
{
- return ptr_->QueryInterface(__uuidof(), (void**)ptr);
+ return ((IUnknown*)ptr_)->QueryInterface(__uuidof(), (void**)ptr);
}
/// Converts the current COM object reference to a given interface type and assigns that to a target .
/// The target raw pointer to copy the address of the current COM object to.
/// The result of for the target type .
public readonly HResult CopyTo(ComPtr* p)
- where U : unmanaged, IUnknown.Interface
+ where U : unmanaged
{
- return ptr_->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf());
+ return ((IUnknown*)ptr_)->QueryInterface(__uuidof(), (void**)p->ReleaseAndGetAddressOf());
}
/// Converts the current COM object reference to a given interface type and assigns that to a target .
/// The target reference to copy the address of the current COM object to.
/// The result of for the target type .
public readonly HResult CopyTo(ref ComPtr other)
- where U : unmanaged, IUnknown.Interface
+ where U : unmanaged
{
U* ptr;
- HResult result = ptr_->QueryInterface(__uuidof(), (void**)&ptr);
+ HResult result = ((IUnknown*)ptr_)->QueryInterface(__uuidof(), (void**)&ptr);
other.Attach(ptr);
return result;
@@ -186,7 +186,7 @@ public unsafe struct ComPtr : IDisposable
/// The result of for the target IID.
public readonly HResult CopyTo(Guid* riid, void** ptr)
{
- return ptr_->QueryInterface(riid, ptr);
+ return ((IUnknown*)ptr_)->QueryInterface(riid, ptr);
}
/// Converts the current object reference to a type indicated by the given IID and assigns that to a target value.
@@ -195,7 +195,7 @@ public unsafe struct ComPtr : IDisposable
/// The result of for the target IID.
public readonly HResult CopyTo(Guid* riid, ComPtr* p)
{
- return ptr_->QueryInterface(riid, (void**)p->ReleaseAndGetAddressOf());
+ return ((IUnknown*)ptr_)->QueryInterface(riid, (void**)p->ReleaseAndGetAddressOf());
}
/// Converts the current object reference to a type indicated by the given IID and assigns that to a target value.
@@ -205,7 +205,7 @@ public unsafe struct ComPtr : IDisposable
public readonly HResult CopyTo(Guid* riid, ref ComPtr other)
{
IUnknown* ptr;
- HResult result = ptr_->QueryInterface(riid, (void**)&ptr);
+ HResult result = ((IUnknown*)ptr_)->QueryInterface(riid, (void**)&ptr);
other.Attach(ptr);
return result;
@@ -220,7 +220,7 @@ public unsafe struct ComPtr : IDisposable
if (pointer != null)
{
ptr_ = null;
- _ = pointer->Release();
+ _ = ((IUnknown*)pointer)->Release();
}
}
@@ -322,7 +322,7 @@ public unsafe struct ComPtr : IDisposable
if (temp != null)
{
- _ = temp->AddRef();
+ _ = ((IUnknown*)temp)->AddRef();
}
}
@@ -335,7 +335,7 @@ public unsafe struct ComPtr : IDisposable
if (temp != null)
{
ptr_ = null;
- @ref = temp->Release();
+ @ref = ((IUnknown*)temp)->Release();
}
return @ref;
diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs
index bde6a6b..3b2bfa8 100644
--- a/src/Vortice.Win32/Generated/Graphics/Direct3D.cs
+++ b/src/Vortice.Win32/Generated/Graphics/Direct3D.cs
@@ -1093,7 +1093,7 @@ public partial struct ShaderMacro
[Guid("8ba5fb08-5195-40e2-ac58-0d989c3a0102")]
[NativeTypeName("struct ID3DBlob : IUnknown")]
[NativeInheritance("IUnknown")]
-public unsafe partial struct ID3DBlob : ID3DBlob.Interface
+public unsafe partial struct ID3DBlob
{
public static ref readonly Guid IID_ID3DBlob
{
@@ -1154,11 +1154,7 @@ public unsafe partial struct ID3DBlob : ID3DBlob.Interface
[VtblIndex(3)]
public void* GetBufferPointer()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[3]))((ID3DBlob*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3DBlob*)Unsafe.AsPointer(ref this));
-#endif
}
///
@@ -1166,16 +1162,9 @@ public unsafe partial struct ID3DBlob : ID3DBlob.Interface
[VtblIndex(4)]
public nuint GetBufferSize()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3DBlob*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DBlob*)Unsafe.AsPointer(ref this));
-#endif
}
- public interface Interface : IUnknown.Interface
- {
- }
}
///
@@ -1183,7 +1172,7 @@ public unsafe partial struct ID3DBlob : ID3DBlob.Interface
[Guid("a06eb39a-50da-425b-8c31-4eecd6c270f3")]
[NativeTypeName("struct ID3DDestructionNotifier : IUnknown")]
[NativeInheritance("IUnknown")]
-public unsafe partial struct ID3DDestructionNotifier : ID3DDestructionNotifier.Interface
+public unsafe partial struct ID3DDestructionNotifier
{
public static ref readonly Guid IID_ID3DDestructionNotifier
{
@@ -1244,11 +1233,7 @@ public unsafe partial struct ID3DDestructionNotifier : ID3DDestructionNotifier.I
[VtblIndex(3)]
public HResult RegisterDestructionCallback(delegate* unmanaged[Stdcall] callbackFn, void* pData, uint* pCallbackID)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged, void*, uint*, int>)(lpVtbl[3]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackFn, pData, pCallbackID);
-#else
return ((delegate* unmanaged[Stdcall], void*, uint*, int>)(lpVtbl[3]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackFn, pData, pCallbackID);
-#endif
}
///
@@ -1256,21 +1241,14 @@ public unsafe partial struct ID3DDestructionNotifier : ID3DDestructionNotifier.I
[VtblIndex(4)]
public HResult UnregisterDestructionCallback(uint callbackID)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackID);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3DDestructionNotifier*)Unsafe.AsPointer(ref this), callbackID);
-#endif
}
- public interface Interface : IUnknown.Interface
- {
- }
}
///
/// ID3DInclude
-public unsafe partial struct ID3DInclude : ID3DInclude.Interface
+public unsafe partial struct ID3DInclude
{
public void** lpVtbl;
@@ -1279,11 +1257,7 @@ public unsafe partial struct ID3DInclude : ID3DInclude.Interface
[VtblIndex(0)]
public HResult Open(IncludeType IncludeType, byte** pFileName, void* pParentData, void** ppData, uint* pBytes)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[0]))((ID3DInclude*)Unsafe.AsPointer(ref this), IncludeType, pFileName, pParentData, ppData, pBytes);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID3DInclude*)Unsafe.AsPointer(ref this), IncludeType, pFileName, pParentData, ppData, pBytes);
-#endif
}
///
@@ -1291,16 +1265,9 @@ public unsafe partial struct ID3DInclude : ID3DInclude.Interface
[VtblIndex(1)]
public HResult Close(void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[1]))((ID3DInclude*)Unsafe.AsPointer(ref this), pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID3DInclude*)Unsafe.AsPointer(ref this), pData);
-#endif
}
- public interface Interface
- {
- }
}
#endregion Com Types
diff --git a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs
index c909a76..aa7a3d4 100644
--- a/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs
+++ b/src/Vortice.Win32/Generated/Graphics/Direct3D11.cs
@@ -994,8 +994,10 @@ public enum BlendOp : int
///
/// D3D11_COLOR_WRITE_ENABLE
-public enum ColorWriteEnable : int
+[Flags]
+public enum ColorWriteEnable : byte
{
+ None = 0,
///
/// D3D11_COLOR_WRITE_ENABLE_RED
Red = 1,
@@ -1246,20 +1248,22 @@ public enum TextureAddressMode : int
///
/// D3D11_FORMAT_SUPPORT
+[Flags]
public enum FormatSupport : int
{
+ None = 0,
///
/// D3D11_FORMAT_SUPPORT_BUFFER
Buffer = 1,
///
/// D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER
- IaVertexBuffer = 2,
+ IAVertexBuffer = 2,
///
/// D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER
- IaIndexBuffer = 4,
+ IAIndexBuffer = 4,
///
/// D3D11_FORMAT_SUPPORT_SO_BUFFER
- SoBuffer = 8,
+ SOBuffer = 8,
///
/// D3D11_FORMAT_SUPPORT_TEXTURE1D
Texture1D = 16,
@@ -1345,8 +1349,10 @@ public enum FormatSupport : int
///
/// D3D11_FORMAT_SUPPORT2
+[Flags]
public enum FormatSupport2 : int
{
+ None = 0,
///
/// D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD
UavAtomicAdd = 1,
@@ -1388,12 +1394,12 @@ public enum FormatSupport2 : int
///
/// D3D11_ASYNC_GETDATA_FLAG
[Flags]
-public enum AsyncGetdataFlag : int
+public enum AsyncGetDataFlag : int
{
None = 0,
///
/// D3D11_ASYNC_GETDATA_DONOTFLUSH
- Donotflush = 1,
+ DoNotFlush = 1,
}
///
@@ -1420,34 +1426,34 @@ public enum Query : int
OcclusionPredicate = 5,
///
/// D3D11_QUERY_SO_STATISTICS
- SoStatistics = 6,
+ SOStatistics = 6,
///
/// D3D11_QUERY_SO_OVERFLOW_PREDICATE
- SoOverflowPredicate = 7,
+ SOOverflowPredicate = 7,
///
/// D3D11_QUERY_SO_STATISTICS_STREAM0
- SoStatisticsStream0 = 8,
+ SOStatisticsStream0 = 8,
///
/// D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0
- SoOverflowPredicateStream0 = 9,
+ SOOverflowPredicateStream0 = 9,
///
/// D3D11_QUERY_SO_STATISTICS_STREAM1
- SoStatisticsStream1 = 10,
+ SOStatisticsStream1 = 10,
///
/// D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1
- SoOverflowPredicateStream1 = 11,
+ SOOverflowPredicateStream1 = 11,
///
/// D3D11_QUERY_SO_STATISTICS_STREAM2
- SoStatisticsStream2 = 12,
+ SOStatisticsStream2 = 12,
///
/// D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2
- SoOverflowPredicateStream2 = 13,
+ SOOverflowPredicateStream2 = 13,
///
/// D3D11_QUERY_SO_STATISTICS_STREAM3
- SoStatisticsStream3 = 14,
+ SOStatisticsStream3 = 14,
///
/// D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3
- SoOverflowPredicateStream3 = 15,
+ SOOverflowPredicateStream3 = 15,
}
///
@@ -1458,7 +1464,7 @@ public enum QueryMiscFlag : int
None = 0,
///
/// D3D11_QUERY_MISC_PREDICATEHINT
- Predicatehint = 1,
+ PredicateHint = 1,
}
///
@@ -3584,10 +3590,10 @@ public enum MessageId : int
DeviceDrawResourceMultisampleUnsupported = 373,
///
/// D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE
- DeviceDrawSoTargetsBoundWithoutSource = 374,
+ DeviceDrawSOTargetsBoundWithoutSource = 374,
///
/// D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER
- DeviceDrawSoStrideLargerThanBuffer = 375,
+ DeviceDrawSOStrideLargerThanBuffer = 375,
///
/// D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING
DeviceDrawOmRenderTargetDoesNotSupportBlending = 376,
@@ -3698,13 +3704,13 @@ public enum MessageId : int
QueryEndWithoutBegin = 411,
///
/// D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE
- QueryGetdataInvalidDatasize = 412,
+ QueryGetDataInvalidDatasize = 412,
///
/// D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS
- QueryGetdataInvalidFlags = 413,
+ QueryGetDataInvalidFlags = 413,
///
/// D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL
- QueryGetdataInvalidCall = 414,
+ QueryGetDataInvalidCall = 414,
///
/// D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH
DeviceDrawPsOutputTypeMismatch = 415,
@@ -7105,7 +7111,7 @@ public partial struct InputElementDescription
///
/// D3D11_SO_DECLARATION_ENTRY
-public partial struct SoDeclarationEntry
+public partial struct SODeclarationEntry
{
///
public uint Stream;
@@ -7281,7 +7287,7 @@ public partial struct RenderTargetBlendDescription
public BlendOp BlendOpAlpha;
///
- public byte RenderTargetWriteMask;
+ public ColorWriteEnable RenderTargetWriteMask;
}
///
@@ -8767,7 +8773,7 @@ public partial struct QueryDataPipelineStatistics
///
/// D3D11_QUERY_DATA_SO_STATISTICS
-public partial struct QueryDataSoStatistics
+public partial struct QueryDataSOStatistics
{
///
public ulong NumPrimitivesWritten;
@@ -10169,7 +10175,7 @@ public partial struct RenderTargetBlendDescription1
public LogicOp LogicOp;
///
- public byte RenderTargetWriteMask;
+ public ColorWriteEnable RenderTargetWriteMask;
}
///
@@ -12085,7 +12091,7 @@ public partial struct D3dx11FftBufferInfo
[Guid("1841e5c8-16b0-489b-bcc8-44cfb0d5deae")]
[NativeTypeName("struct ID3D11DeviceChild : IUnknown")]
[NativeInheritance("IUnknown")]
-public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
+public unsafe partial struct ID3D11DeviceChild
{
public static ref readonly Guid IID_ID3D11DeviceChild
{
@@ -12146,11 +12152,7 @@ public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12158,11 +12160,7 @@ public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12170,11 +12168,7 @@ public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12182,16 +12176,9 @@ public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
- public interface Interface : IUnknown.Interface
- {
- }
}
///
@@ -12199,7 +12186,7 @@ public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface
[Guid("03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1")]
[NativeTypeName("struct ID3D11DepthStencilState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.Interface
+public unsafe partial struct ID3D11DepthStencilState
{
public static ref readonly Guid IID_ID3D11DepthStencilState
{
@@ -12260,11 +12247,7 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12272,11 +12255,7 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12284,11 +12263,7 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12296,11 +12271,7 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -12308,16 +12279,9 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[VtblIndex(7)]
public void GetDesc(DepthStencilDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[7]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -12325,7 +12289,7 @@ public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.I
[Guid("75b68faa-347d-4159-8f45-a0640f01cd9a")]
[NativeTypeName("struct ID3D11BlendState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
+public unsafe partial struct ID3D11BlendState
{
public static ref readonly Guid IID_ID3D11BlendState
{
@@ -12386,11 +12350,7 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12398,11 +12358,7 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12410,11 +12366,7 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12422,11 +12374,7 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -12434,16 +12382,9 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[VtblIndex(7)]
public void GetDesc(BlendDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[7]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -12451,7 +12392,7 @@ public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface
[Guid("9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7")]
[NativeTypeName("struct ID3D11RasterizerState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Interface
+public unsafe partial struct ID3D11RasterizerState
{
public static ref readonly Guid IID_ID3D11RasterizerState
{
@@ -12512,11 +12453,7 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12524,11 +12461,7 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12536,11 +12469,7 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12548,11 +12477,7 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -12560,16 +12485,9 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[VtblIndex(7)]
public void GetDesc(RasterizerDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[7]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -12577,7 +12495,7 @@ public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Inter
[Guid("dc8e63f3-d12b-4952-b47b-5e45026a862d")]
[NativeTypeName("struct ID3D11Resource : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
+public unsafe partial struct ID3D11Resource
{
public static ref readonly Guid IID_ID3D11Resource
{
@@ -12638,11 +12556,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11Resource*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Resource*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12650,11 +12564,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12662,11 +12572,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12674,11 +12580,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Resource*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -12686,11 +12588,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(7)]
public void GetType(ResourceDimension* pResourceDimension)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[7]))((ID3D11Resource*)Unsafe.AsPointer(ref this), pResourceDimension);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Resource*)Unsafe.AsPointer(ref this), pResourceDimension);
-#endif
}
///
@@ -12698,11 +12596,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(8)]
public void SetEvictionPriority(uint EvictionPriority)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[8]))((ID3D11Resource*)Unsafe.AsPointer(ref this), EvictionPriority);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Resource*)Unsafe.AsPointer(ref this), EvictionPriority);
-#endif
}
///
@@ -12710,16 +12604,9 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[VtblIndex(9)]
public uint GetEvictionPriority()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[9]))((ID3D11Resource*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Resource*)Unsafe.AsPointer(ref this));
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -12727,7 +12614,7 @@ public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface
[Guid("48570b85-d1ee-4fcd-a250-eb350722b037")]
[NativeTypeName("struct ID3D11Buffer : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
-public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
+public unsafe partial struct ID3D11Buffer
{
public static ref readonly Guid IID_ID3D11Buffer
{
@@ -12788,11 +12675,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(3)]
public void GetType(ResourceDimension* pResourceDimension)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pResourceDimension);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pResourceDimension);
-#endif
}
///
@@ -12800,11 +12683,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(4)]
public void SetEvictionPriority(uint EvictionPriority)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), EvictionPriority);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), EvictionPriority);
-#endif
}
///
@@ -12812,11 +12691,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(5)]
public uint GetEvictionPriority()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11Buffer*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Buffer*)Unsafe.AsPointer(ref this));
-#endif
}
///
@@ -12824,11 +12699,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(6)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[6]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12836,11 +12707,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(7)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -12848,11 +12715,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(8)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[8]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -12860,11 +12723,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(9)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[9]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -12872,16 +12731,9 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[VtblIndex(10)]
public void GetDesc(BufferDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[10]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11Resource.Interface
- {
- }
}
///
@@ -12889,7 +12741,7 @@ public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface
[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")]
[NativeTypeName("struct ID3D11Texture1D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
-public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
+public unsafe partial struct ID3D11Texture1D
{
public static ref readonly Guid IID_ID3D11Texture1D
{
@@ -12950,11 +12802,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(3)]
public void GetType(ResourceDimension* pResourceDimension)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#endif
}
///
@@ -12962,11 +12810,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(4)]
public void SetEvictionPriority(uint EvictionPriority)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#endif
}
///
@@ -12974,11 +12818,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(5)]
public uint GetEvictionPriority()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this));
-#endif
}
///
@@ -12986,11 +12826,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(6)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[6]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -12998,11 +12834,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(7)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13010,11 +12842,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(8)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[8]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13022,11 +12850,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(9)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[9]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13034,16 +12858,9 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[VtblIndex(10)]
public void GetDesc(Texture1DDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[10]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11Resource.Interface
- {
- }
}
///
@@ -13051,7 +12868,7 @@ public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface
[Guid("6f15aaf2-d208-4e89-9ab4-489535d34f9c")]
[NativeTypeName("struct ID3D11Texture2D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
-public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
+public unsafe partial struct ID3D11Texture2D
{
public static ref readonly Guid IID_ID3D11Texture2D
{
@@ -13112,11 +12929,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(3)]
public void GetType(ResourceDimension* pResourceDimension)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#endif
}
///
@@ -13124,11 +12937,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(4)]
public void SetEvictionPriority(uint EvictionPriority)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#endif
}
///
@@ -13136,11 +12945,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(5)]
public uint GetEvictionPriority()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this));
-#endif
}
///
@@ -13148,11 +12953,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(6)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[6]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13160,11 +12961,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(7)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13172,11 +12969,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(8)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[8]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13184,11 +12977,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(9)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[9]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13196,16 +12985,9 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[VtblIndex(10)]
public void GetDesc(Texture2DDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[10]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11Resource.Interface
- {
- }
}
///
@@ -13213,7 +12995,7 @@ public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface
[Guid("037e866e-f56d-4357-a8af-9dabbe6e250e")]
[NativeTypeName("struct ID3D11Texture3D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
-public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
+public unsafe partial struct ID3D11Texture3D
{
public static ref readonly Guid IID_ID3D11Texture3D
{
@@ -13274,11 +13056,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(3)]
public void GetType(ResourceDimension* pResourceDimension)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pResourceDimension);
-#endif
}
///
@@ -13286,11 +13064,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(4)]
public void SetEvictionPriority(uint EvictionPriority)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), EvictionPriority);
-#endif
}
///
@@ -13298,11 +13072,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(5)]
public uint GetEvictionPriority()
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this));
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this));
-#endif
}
///
@@ -13310,11 +13080,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(6)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[6]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13322,11 +13088,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(7)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13334,11 +13096,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(8)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[8]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13346,11 +13104,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(9)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[9]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13358,16 +13112,9 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[VtblIndex(10)]
public void GetDesc(Texture3DDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[10]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11Resource.Interface
- {
- }
}
///
@@ -13375,7 +13122,7 @@ public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface
[Guid("839d1216-bb2e-412b-b7f4-a9dbebe08ed1")]
[NativeTypeName("struct ID3D11View : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11View : ID3D11View.Interface
+public unsafe partial struct ID3D11View
{
public static ref readonly Guid IID_ID3D11View
{
@@ -13436,11 +13183,7 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11View*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11View*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13448,11 +13191,7 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13460,11 +13199,7 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13472,11 +13207,7 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11View*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13484,16 +13215,9 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[VtblIndex(7)]
public void GetResource(ID3D11Resource* ppResource)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[7]))((ID3D11View*)Unsafe.AsPointer(ref this), ppResource);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11View*)Unsafe.AsPointer(ref this), ppResource);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -13501,7 +13225,7 @@ public unsafe partial struct ID3D11View : ID3D11View.Interface
[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")]
[NativeTypeName("struct ID3D11ShaderResourceView : ID3D11View")]
[NativeInheritance("ID3D11View")]
-public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView.Interface
+public unsafe partial struct ID3D11ShaderResourceView
{
public static ref readonly Guid IID_ID3D11ShaderResourceView
{
@@ -13562,11 +13286,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(3)]
public void GetResource(ID3D11Resource* ppResource)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppResource);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppResource);
-#endif
}
///
@@ -13574,11 +13294,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(4)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13586,11 +13302,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(5)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13598,11 +13310,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(6)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13610,11 +13318,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(7)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13622,16 +13326,9 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[VtblIndex(8)]
public void GetDesc(ShaderResourceViewDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[8]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11View.Interface
- {
- }
}
///
@@ -13639,7 +13336,7 @@ public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView
[Guid("dfdba067-0b8d-4865-875b-d7b4516cc164")]
[NativeTypeName("struct ID3D11RenderTargetView : ID3D11View")]
[NativeInheritance("ID3D11View")]
-public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Interface
+public unsafe partial struct ID3D11RenderTargetView
{
public static ref readonly Guid IID_ID3D11RenderTargetView
{
@@ -13700,11 +13397,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(3)]
public void GetResource(ID3D11Resource* ppResource)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppResource);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppResource);
-#endif
}
///
@@ -13712,11 +13405,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(4)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13724,11 +13413,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(5)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13736,11 +13421,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(6)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13748,11 +13429,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(7)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13760,16 +13437,9 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[VtblIndex(8)]
public void GetDesc(RenderTargetViewDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[8]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11View.Interface
- {
- }
}
///
@@ -13777,7 +13447,7 @@ public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Int
[Guid("9fdac92a-1876-48c3-afad-25b94f84a9b6")]
[NativeTypeName("struct ID3D11DepthStencilView : ID3D11View")]
[NativeInheritance("ID3D11View")]
-public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Interface
+public unsafe partial struct ID3D11DepthStencilView
{
public static ref readonly Guid IID_ID3D11DepthStencilView
{
@@ -13838,11 +13508,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(3)]
public void GetResource(ID3D11Resource* ppResource)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppResource);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppResource);
-#endif
}
///
@@ -13850,11 +13516,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(4)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -13862,11 +13524,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(5)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -13874,11 +13532,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(6)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -13886,11 +13540,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(7)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -13898,16 +13548,9 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[VtblIndex(8)]
public void GetDesc(DepthStencilViewDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[8]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11View.Interface
- {
- }
}
///
@@ -13915,7 +13558,7 @@ public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Int
[Guid("28acf509-7f5c-48f6-8611-f316010a6380")]
[NativeTypeName("struct ID3D11UnorderedAccessView : ID3D11View")]
[NativeInheritance("ID3D11View")]
-public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessView.Interface
+public unsafe partial struct ID3D11UnorderedAccessView
{
public static ref readonly Guid IID_ID3D11UnorderedAccessView
{
@@ -13976,11 +13619,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(3)]
public void GetResource(ID3D11Resource* ppResource)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppResource);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppResource);
-#endif
}
///
@@ -13988,11 +13627,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(4)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[4]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -14000,11 +13635,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(5)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -14012,11 +13643,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(6)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -14024,11 +13651,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(7)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[7]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
///
@@ -14036,16 +13659,9 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[VtblIndex(8)]
public void GetDesc(UnorderedAccessViewDescription* pDesc)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[8]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), pDesc);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), pDesc);
-#endif
}
- public interface Interface : ID3D11View.Interface
- {
- }
}
///
@@ -14053,7 +13669,7 @@ public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessVi
[Guid("3b301d64-d678-4289-8897-22f8928b72f3")]
[NativeTypeName("struct ID3D11VertexShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
+public unsafe partial struct ID3D11VertexShader
{
public static ref readonly Guid IID_ID3D11VertexShader
{
@@ -14114,11 +13730,7 @@ public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -14126,11 +13738,7 @@ public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -14138,11 +13746,7 @@ public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -14150,16 +13754,9 @@ public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -14167,7 +13764,7 @@ public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface
[Guid("8e5c6061-628a-4c8e-8264-bbe45cb3d5dd")]
[NativeTypeName("struct ID3D11HullShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
+public unsafe partial struct ID3D11HullShader
{
public static ref readonly Guid IID_ID3D11HullShader
{
@@ -14228,11 +13825,7 @@ public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -14240,11 +13833,7 @@ public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -14252,11 +13841,7 @@ public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -14264,16 +13849,9 @@ public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -14281,7 +13859,7 @@ public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface
[Guid("f582c508-0f36-490c-9977-31eece268cfa")]
[NativeTypeName("struct ID3D11DomainShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
+public unsafe partial struct ID3D11DomainShader
{
public static ref readonly Guid IID_ID3D11DomainShader
{
@@ -14342,11 +13920,7 @@ public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -14354,11 +13928,7 @@ public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -14366,11 +13936,7 @@ public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -14378,16 +13944,9 @@ public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pData);
-#endif
}
- public interface Interface : ID3D11DeviceChild.Interface
- {
- }
}
///
@@ -14395,7 +13954,7 @@ public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface
[Guid("38325b96-effb-4022-ba02-2e795b70275c")]
[NativeTypeName("struct ID3D11GeometryShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
-public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interface
+public unsafe partial struct ID3D11GeometryShader
{
public static ref readonly Guid IID_ID3D11GeometryShader
{
@@ -14456,11 +14015,7 @@ public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interfa
[VtblIndex(3)]
public void GetDevice(ID3D11Device* ppDevice)
{
-#if NET6_0_OR_GREATER
- ((delegate* unmanaged)(lpVtbl[3]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), ppDevice);
-#else
((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), ppDevice);
-#endif
}
///
@@ -14468,11 +14023,7 @@ public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interfa
[VtblIndex(4)]
public HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[4]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pDataSize, pData);
-#endif
}
///
@@ -14480,11 +14031,7 @@ public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interfa
[VtblIndex(5)]
public HResult SetPrivateData(Guid* guid, uint DataSize, void* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[5]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#else
return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, DataSize, pData);
-#endif
}
///
@@ -14492,16 +14039,9 @@ public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interfa
[VtblIndex(6)]
public HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData)
{
-#if NET6_0_OR_GREATER
- return ((delegate* unmanaged)(lpVtbl[6]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pData);
-#else
return ((delegate* unmanaged[Stdcall]