Update metadata to 39.0.18-preview

Generator: Add initial Interface generation.
This commit is contained in:
Amer Koleci
2022-12-01 16:26:51 +01:00
parent b04caed143
commit 61295b00a2
572 changed files with 48214 additions and 887 deletions

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("4b35d0cd-1e15-4258-9c98-1b1333f6dd3b")]
[NativeTypeName("struct ID3D11Asynchronous : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11Asynchronous : INativeGuid
public unsafe partial struct ID3D11Asynchronous : ID3D11Asynchronous.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Asynchronous
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11Asynchronous : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Asynchronous*, uint>)(lpVtbl[7]))((ID3D11Asynchronous*)Unsafe.AsPointer(ref this));
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
uint GetDataSize();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("3015a308-dcbd-47aa-a747-192486d14d4a")]
[NativeTypeName("struct ID3D11AuthenticatedChannel : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11AuthenticatedChannel : INativeGuid
public unsafe partial struct ID3D11AuthenticatedChannel : ID3D11AuthenticatedChannel.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11AuthenticatedChannel
{
@@ -129,5 +129,16 @@ public unsafe partial struct ID3D11AuthenticatedChannel : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11AuthenticatedChannel*, Handle*, void>)(lpVtbl[9]))((ID3D11AuthenticatedChannel*)Unsafe.AsPointer(ref this), pChannelHandle);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult GetCertificateSize(uint* pCertificateSize);
[VtblIndex(8)]
HResult GetCertificate(uint CertificateSize, byte* pCertificate);
[VtblIndex(9)]
void GetChannelHandle(Handle* pChannelHandle);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("75b68faa-347d-4159-8f45-a0640f01cd9a")]
[NativeTypeName("struct ID3D11BlendState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11BlendState : INativeGuid
public unsafe partial struct ID3D11BlendState : ID3D11BlendState.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11BlendState
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11BlendState : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11BlendState*, BlendDescription*, void>)(lpVtbl[7]))((ID3D11BlendState*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetDesc(BlendDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("cc86fabe-da55-401d-85e7-e3c9de2877e9")]
[NativeTypeName("struct ID3D11BlendState1 : ID3D11BlendState")]
[NativeInheritance("ID3D11BlendState")]
public unsafe partial struct ID3D11BlendState1 : INativeGuid
public unsafe partial struct ID3D11BlendState1 : ID3D11BlendState1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11BlendState1
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11BlendState1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11BlendState1*, BlendDescription1*, void>)(lpVtbl[8]))((ID3D11BlendState1*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11BlendState.Interface
{
[VtblIndex(8)]
void GetDesc1(BlendDescription1* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("48570b85-d1ee-4fcd-a250-eb350722b037")]
[NativeTypeName("struct ID3D11Buffer : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
public unsafe partial struct ID3D11Buffer : INativeGuid
public unsafe partial struct ID3D11Buffer : ID3D11Buffer.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Buffer
{
@@ -137,5 +137,10 @@ public unsafe partial struct ID3D11Buffer : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Buffer*, BufferDescription*, void>)(lpVtbl[10]))((ID3D11Buffer*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Resource.Interface
{
[VtblIndex(10)]
void GetDesc(BufferDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a6cd7faa-b0b7-4a2f-9436-8662a65797cb")]
[NativeTypeName("struct ID3D11ClassInstance : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11ClassInstance : INativeGuid
public unsafe partial struct ID3D11ClassInstance : ID3D11ClassInstance.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ClassInstance
{
@@ -137,5 +137,19 @@ public unsafe partial struct ID3D11ClassInstance : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11ClassInstance*, byte*, nuint*, void>)(lpVtbl[10]))((ID3D11ClassInstance*)Unsafe.AsPointer(ref this), pTypeName, pBufferLength);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetClassLinkage(ID3D11ClassLinkage** ppLinkage);
[VtblIndex(8)]
void GetDesc(ClassInstanceDescription* pDesc);
[VtblIndex(9)]
void GetInstanceName(byte* pInstanceName, nuint* pBufferLength);
[VtblIndex(10)]
void GetTypeName(byte* pTypeName, nuint* pBufferLength);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("ddf57cba-9543-46e4-a12b-f207a0fe7fed")]
[NativeTypeName("struct ID3D11ClassLinkage : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11ClassLinkage : INativeGuid
public unsafe partial struct ID3D11ClassLinkage : ID3D11ClassLinkage.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ClassLinkage
{
@@ -121,5 +121,13 @@ public unsafe partial struct ID3D11ClassLinkage : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ClassLinkage*, sbyte*, uint, uint, uint, uint, ID3D11ClassInstance**, int>)(lpVtbl[8]))((ID3D11ClassLinkage*)Unsafe.AsPointer(ref this), pClassTypeName, ConstantBufferOffset, ConstantVectorOffset, TextureOffset, SamplerOffset, ppInstance);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult GetClassInstance(sbyte* pClassInstanceName, uint InstanceIndex, ID3D11ClassInstance** ppInstance);
[VtblIndex(8)]
HResult CreateClassInstance(sbyte* pClassTypeName, uint ConstantBufferOffset, uint ConstantVectorOffset, uint TextureOffset, uint SamplerOffset, ID3D11ClassInstance** ppInstance);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a24bc4d1-769e-43f7-8013-98ff566c18e2")]
[NativeTypeName("struct ID3D11CommandList : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11CommandList : INativeGuid
public unsafe partial struct ID3D11CommandList : ID3D11CommandList.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11CommandList
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11CommandList : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11CommandList*, uint>)(lpVtbl[7]))((ID3D11CommandList*)Unsafe.AsPointer(ref this));
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
uint GetContextFlags();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("4f5b196e-c2bd-495e-bd01-1fded38e4969")]
[NativeTypeName("struct ID3D11ComputeShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11ComputeShader : INativeGuid
public unsafe partial struct ID3D11ComputeShader : ID3D11ComputeShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ComputeShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11ComputeShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ComputeShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11ComputeShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("6e8c49fb-a371-4770-b440-29086022b741")]
[NativeTypeName("struct ID3D11Counter : ID3D11Asynchronous")]
[NativeInheritance("ID3D11Asynchronous")]
public unsafe partial struct ID3D11Counter : INativeGuid
public unsafe partial struct ID3D11Counter : ID3D11Counter.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Counter
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11Counter : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Counter*, CounterDescription*, void>)(lpVtbl[8]))((ID3D11Counter*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Asynchronous.Interface
{
[VtblIndex(8)]
void GetDesc(CounterDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9b32f9ad-bdcc-40a6-a39d-d5c865845720")]
[NativeTypeName("struct ID3D11CryptoSession : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11CryptoSession : INativeGuid
public unsafe partial struct ID3D11CryptoSession : ID3D11CryptoSession.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11CryptoSession
{
@@ -145,5 +145,22 @@ public unsafe partial struct ID3D11CryptoSession : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11CryptoSession*, Handle*, void>)(lpVtbl[11]))((ID3D11CryptoSession*)Unsafe.AsPointer(ref this), pCryptoSessionHandle);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetCryptoType(Guid* pCryptoType);
[VtblIndex(8)]
void GetDecoderProfile(Guid* pDecoderProfile);
[VtblIndex(9)]
HResult GetCertificateSize(uint* pCertificateSize);
[VtblIndex(10)]
HResult GetCertificate(uint CertificateSize, byte* pCertificate);
[VtblIndex(11)]
void GetCryptoSessionHandle(Handle* pCryptoSessionHandle);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("79cf2233-7536-4948-9d36-1e4692dc5760")]
[NativeTypeName("struct ID3D11Debug : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11Debug : INativeGuid
public unsafe partial struct ID3D11Debug : ID3D11Debug.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Debug
{
@@ -145,5 +145,34 @@ public unsafe partial struct ID3D11Debug : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Debug*, ID3D11DeviceContext*, int>)(lpVtbl[11]))((ID3D11Debug*)Unsafe.AsPointer(ref this), pContext);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult SetFeatureMask(uint Mask);
[VtblIndex(4)]
uint GetFeatureMask();
[VtblIndex(5)]
HResult SetPresentPerRenderOpDelay(uint Milliseconds);
[VtblIndex(6)]
uint GetPresentPerRenderOpDelay();
[VtblIndex(7)]
HResult SetSwapChain(Graphics.Dxgi.IDXGISwapChain* pSwapChain);
[VtblIndex(8)]
HResult GetSwapChain(Graphics.Dxgi.IDXGISwapChain** ppSwapChain);
[VtblIndex(9)]
HResult ValidateContext(ID3D11DeviceContext* pContext);
[VtblIndex(10)]
HResult ReportLiveDeviceObjects(ReportLiveDeviceObjectFlags Flags);
[VtblIndex(11)]
HResult ValidateContextForDispatch(ID3D11DeviceContext* pContext);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1")]
[NativeTypeName("struct ID3D11DepthStencilState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11DepthStencilState : INativeGuid
public unsafe partial struct ID3D11DepthStencilState : ID3D11DepthStencilState.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DepthStencilState
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11DepthStencilState : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11DepthStencilState*, DepthStencilDescription*, void>)(lpVtbl[7]))((ID3D11DepthStencilState*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetDesc(DepthStencilDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9fdac92a-1876-48c3-afad-25b94f84a9b6")]
[NativeTypeName("struct ID3D11DepthStencilView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11DepthStencilView : INativeGuid
public unsafe partial struct ID3D11DepthStencilView : ID3D11DepthStencilView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DepthStencilView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11DepthStencilView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11DepthStencilView*, DepthStencilViewDescription*, void>)(lpVtbl[8]))((ID3D11DepthStencilView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(DepthStencilViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("db6f6ddb-ac77-4e88-8253-819df9bbf140")]
[NativeTypeName("struct ID3D11Device : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11Device : INativeGuid
public unsafe partial struct ID3D11Device : ID3D11Device.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device
{
@@ -393,5 +393,127 @@ public unsafe partial struct ID3D11Device : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Device*, uint>)(lpVtbl[42]))((ID3D11Device*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult CreateBuffer(BufferDescription* pDesc, SubresourceData* pInitialData, ID3D11Buffer** ppBuffer);
[VtblIndex(4)]
HResult CreateTexture1D(Texture1DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture1D** ppTexture1D);
[VtblIndex(5)]
HResult CreateTexture2D(Texture2DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture2D** ppTexture2D);
[VtblIndex(6)]
HResult CreateTexture3D(Texture3DDescription* pDesc, SubresourceData* pInitialData, ID3D11Texture3D** ppTexture3D);
[VtblIndex(7)]
HResult CreateShaderResourceView(ID3D11Resource* pResource, ShaderResourceViewDescription* pDesc, ID3D11ShaderResourceView** ppSRView);
[VtblIndex(8)]
HResult CreateUnorderedAccessView(ID3D11Resource* pResource, UnorderedAccessViewDescription* pDesc, ID3D11UnorderedAccessView** ppUAView);
[VtblIndex(9)]
HResult CreateRenderTargetView(ID3D11Resource* pResource, RenderTargetViewDescription* pDesc, ID3D11RenderTargetView** ppRTView);
[VtblIndex(10)]
HResult CreateDepthStencilView(ID3D11Resource* pResource, DepthStencilViewDescription* pDesc, ID3D11DepthStencilView** ppDepthStencilView);
[VtblIndex(11)]
HResult CreateInputLayout(InputElementDescription* pInputElementDescs, uint NumElements, void* pShaderBytecodeWithInputSignature, nuint BytecodeLength, ID3D11InputLayout** ppInputLayout);
[VtblIndex(12)]
HResult CreateVertexShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11VertexShader** ppVertexShader);
[VtblIndex(13)]
HResult CreateGeometryShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader);
[VtblIndex(14)]
HResult CreateGeometryShaderWithStreamOutput(void* pShaderBytecode, nuint BytecodeLength, SODeclarationEntry* pSODeclaration, uint NumEntries, uint* pBufferStrides, uint NumStrides, uint RasterizedStream, ID3D11ClassLinkage* pClassLinkage, ID3D11GeometryShader** ppGeometryShader);
[VtblIndex(15)]
HResult CreatePixelShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11PixelShader** ppPixelShader);
[VtblIndex(16)]
HResult CreateHullShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11HullShader** ppHullShader);
[VtblIndex(17)]
HResult CreateDomainShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11DomainShader** ppDomainShader);
[VtblIndex(18)]
HResult CreateComputeShader(void* pShaderBytecode, nuint BytecodeLength, ID3D11ClassLinkage* pClassLinkage, ID3D11ComputeShader** ppComputeShader);
[VtblIndex(19)]
HResult CreateClassLinkage(ID3D11ClassLinkage** ppLinkage);
[VtblIndex(20)]
HResult CreateBlendState(BlendDescription* pBlendStateDesc, ID3D11BlendState** ppBlendState);
[VtblIndex(21)]
HResult CreateDepthStencilState(DepthStencilDescription* pDepthStencilDesc, ID3D11DepthStencilState** ppDepthStencilState);
[VtblIndex(22)]
HResult CreateRasterizerState(RasterizerDescription* pRasterizerDesc, ID3D11RasterizerState** ppRasterizerState);
[VtblIndex(23)]
HResult CreateSamplerState(SamplerDescription* pSamplerDesc, ID3D11SamplerState** ppSamplerState);
[VtblIndex(24)]
HResult CreateQuery(QueryDescription* pQueryDesc, ID3D11Query** ppQuery);
[VtblIndex(25)]
HResult CreatePredicate(QueryDescription* pPredicateDesc, ID3D11Predicate** ppPredicate);
[VtblIndex(26)]
HResult CreateCounter(CounterDescription* pCounterDesc, ID3D11Counter** ppCounter);
[VtblIndex(27)]
HResult CreateDeferredContext(uint ContextFlags, ID3D11DeviceContext** ppDeferredContext);
[VtblIndex(28)]
HResult OpenSharedResource(Handle hResource, Guid* ReturnedInterface, void** ppResource);
[VtblIndex(29)]
HResult CheckFormatSupport(Graphics.Dxgi.Common.Format Format, uint* pFormatSupport);
[VtblIndex(30)]
HResult CheckMultisampleQualityLevels(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint* pNumQualityLevels);
[VtblIndex(31)]
void CheckCounterInfo(CounterInfo* pCounterInfo);
[VtblIndex(32)]
HResult CheckCounter(CounterDescription* pDesc, CounterType* pType, uint* pActiveCounters, byte* szName, uint* pNameLength, byte* szUnits, uint* pUnitsLength, byte* szDescription, uint* pDescriptionLength);
[VtblIndex(33)]
HResult CheckFeatureSupport(Feature Feature, void* pFeatureSupportData, int FeatureSupportDataSize);
[VtblIndex(34)]
HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData);
[VtblIndex(35)]
HResult SetPrivateData(Guid* guid, uint DataSize, void* pData);
[VtblIndex(36)]
HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData);
[VtblIndex(37)]
Graphics.Direct3D.FeatureLevel GetFeatureLevel();
[VtblIndex(38)]
uint GetCreationFlags();
[VtblIndex(39)]
HResult GetDeviceRemovedReason();
[VtblIndex(40)]
void GetImmediateContext(ID3D11DeviceContext** ppImmediateContext);
[VtblIndex(41)]
HResult SetExceptionMode(uint RaiseFlags);
[VtblIndex(42)]
uint GetExceptionMode();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686")]
[NativeTypeName("struct ID3D11Device1 : ID3D11Device")]
[NativeInheritance("ID3D11Device")]
public unsafe partial struct ID3D11Device1 : INativeGuid
public unsafe partial struct ID3D11Device1 : ID3D11Device1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device1
{
@@ -449,5 +449,28 @@ public unsafe partial struct ID3D11Device1 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Device1*, ushort*, uint, Guid*, void**, int>)(lpVtbl[49]))((ID3D11Device1*)Unsafe.AsPointer(ref this), lpName, dwDesiredAccess, returnedInterface, ppResource);
}
public interface Interface : ID3D11Device.Interface
{
[VtblIndex(43)]
void GetImmediateContext1(ID3D11DeviceContext1** ppImmediateContext);
[VtblIndex(44)]
HResult CreateDeferredContext1(uint ContextFlags, ID3D11DeviceContext1** ppDeferredContext);
[VtblIndex(45)]
HResult CreateBlendState1(BlendDescription1* pBlendStateDesc, ID3D11BlendState1** ppBlendState);
[VtblIndex(46)]
HResult CreateRasterizerState1(RasterizerDescription1* pRasterizerDesc, ID3D11RasterizerState1** ppRasterizerState);
[VtblIndex(47)]
HResult CreateDeviceContextState(uint Flags, Graphics.Direct3D.FeatureLevel* pFeatureLevels, uint FeatureLevels, uint SDKVersion, Guid* EmulatedInterface, Graphics.Direct3D.FeatureLevel* pChosenFeatureLevel, ID3DDeviceContextState** ppContextState);
[VtblIndex(48)]
HResult OpenSharedResource1(Handle hResource, Guid* returnedInterface, void** ppResource);
[VtblIndex(49)]
HResult OpenSharedResourceByName(ushort* lpName, uint dwDesiredAccess, Guid* returnedInterface, void** ppResource);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9d06dffa-d1e5-4d07-83a8-1bb123f2f841")]
[NativeTypeName("struct ID3D11Device2 : ID3D11Device1")]
[NativeInheritance("ID3D11Device1")]
public unsafe partial struct ID3D11Device2 : INativeGuid
public unsafe partial struct ID3D11Device2 : ID3D11Device2.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device2
{
@@ -481,5 +481,19 @@ public unsafe partial struct ID3D11Device2 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Device2*, Graphics.Dxgi.Common.Format, uint, uint, uint*, int>)(lpVtbl[53]))((ID3D11Device2*)Unsafe.AsPointer(ref this), Format, SampleCount, Flags, pNumQualityLevels);
}
public interface Interface : ID3D11Device1.Interface
{
[VtblIndex(50)]
void GetImmediateContext2(ID3D11DeviceContext2** ppImmediateContext);
[VtblIndex(51)]
HResult CreateDeferredContext2(uint ContextFlags, ID3D11DeviceContext2** ppDeferredContext);
[VtblIndex(52)]
void GetResourceTiling(ID3D11Resource* pTiledResource, uint* pNumTilesForEntireResource, PackedMipDescription* pPackedMipDesc, TileShape* pStandardTileShapeForNonPackedMips, uint* pNumSubresourceTilings, uint FirstSubresourceTilingToGet, SubresourceTiling* pSubresourceTilingsForNonPackedMips);
[VtblIndex(53)]
HResult CheckMultisampleQualityLevels1(Graphics.Dxgi.Common.Format Format, uint SampleCount, uint Flags, uint* pNumQualityLevels);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a05c8c37-d2c6-4732-b3a0-9ce0b0dc9ae6")]
[NativeTypeName("struct ID3D11Device3 : ID3D11Device2")]
[NativeInheritance("ID3D11Device2")]
public unsafe partial struct ID3D11Device3 : INativeGuid
public unsafe partial struct ID3D11Device3 : ID3D11Device3.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device3
{
@@ -569,5 +569,40 @@ public unsafe partial struct ID3D11Device3 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Device3*, void*, uint, uint, ID3D11Resource*, uint, Box*, void>)(lpVtbl[64]))((ID3D11Device3*)Unsafe.AsPointer(ref this), pDstData, DstRowPitch, DstDepthPitch, pSrcResource, SrcSubresource, pSrcBox);
}
public interface Interface : ID3D11Device2.Interface
{
[VtblIndex(54)]
HResult CreateTexture2D1(Texture2DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture2D1** ppTexture2D);
[VtblIndex(55)]
HResult CreateTexture3D1(Texture3DDescription1* pDesc1, SubresourceData* pInitialData, ID3D11Texture3D1** ppTexture3D);
[VtblIndex(56)]
HResult CreateRasterizerState2(RasterizerDescription2* pRasterizerDesc, ID3D11RasterizerState2** ppRasterizerState);
[VtblIndex(57)]
HResult CreateShaderResourceView1(ID3D11Resource* pResource, ShaderResourceViewDescription1* pDesc1, ID3D11ShaderResourceView1** ppSRView1);
[VtblIndex(58)]
HResult CreateUnorderedAccessView1(ID3D11Resource* pResource, UnorderedAccessViewDescription1* pDesc1, ID3D11UnorderedAccessView1** ppUAView1);
[VtblIndex(59)]
HResult CreateRenderTargetView1(ID3D11Resource* pResource, RenderTargetViewDescription1* pDesc1, ID3D11RenderTargetView1** ppRTView1);
[VtblIndex(60)]
HResult CreateQuery1(QueryDescription1* pQueryDesc1, ID3D11Query1** ppQuery1);
[VtblIndex(61)]
void GetImmediateContext3(ID3D11DeviceContext3** ppImmediateContext);
[VtblIndex(62)]
HResult CreateDeferredContext3(uint ContextFlags, ID3D11DeviceContext3** ppDeferredContext);
[VtblIndex(63)]
void WriteToSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch);
[VtblIndex(64)]
void ReadFromSubresource(void* pDstData, uint DstRowPitch, uint DstDepthPitch, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("8992ab71-02e6-4b8d-ba48-b056dcda42c4")]
[NativeTypeName("struct ID3D11Device4 : ID3D11Device3")]
[NativeInheritance("ID3D11Device3")]
public unsafe partial struct ID3D11Device4 : INativeGuid
public unsafe partial struct ID3D11Device4 : ID3D11Device4.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device4
{
@@ -585,5 +585,13 @@ public unsafe partial struct ID3D11Device4 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Device4*, uint, void>)(lpVtbl[66]))((ID3D11Device4*)Unsafe.AsPointer(ref this), dwCookie);
}
public interface Interface : ID3D11Device3.Interface
{
[VtblIndex(65)]
HResult RegisterDeviceRemovedEvent(Handle hEvent, uint* pdwCookie);
[VtblIndex(66)]
void UnregisterDeviceRemoved(uint dwCookie);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("8ffde202-a0e7-45df-9e01-e837801b5ea0")]
[NativeTypeName("struct ID3D11Device5 : ID3D11Device4")]
[NativeInheritance("ID3D11Device4")]
public unsafe partial struct ID3D11Device5 : INativeGuid
public unsafe partial struct ID3D11Device5 : ID3D11Device5.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Device5
{
@@ -601,5 +601,13 @@ public unsafe partial struct ID3D11Device5 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Device5*, ulong, FenceFlags, Guid*, void**, int>)(lpVtbl[68]))((ID3D11Device5*)Unsafe.AsPointer(ref this), InitialValue, Flags, ReturnedInterface, ppFence);
}
public interface Interface : ID3D11Device4.Interface
{
[VtblIndex(67)]
HResult OpenSharedFence(Handle hFence, Guid* ReturnedInterface, void** ppFence);
[VtblIndex(68)]
HResult CreateFence(ulong InitialValue, FenceFlags Flags, Guid* ReturnedInterface, void** ppFence);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1841e5c8-16b0-489b-bcc8-44cfb0d5deae")]
[NativeTypeName("struct ID3D11DeviceChild : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11DeviceChild : INativeGuid
public unsafe partial struct ID3D11DeviceChild : ID3D11DeviceChild.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceChild
{
@@ -105,5 +105,19 @@ public unsafe partial struct ID3D11DeviceChild : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceChild*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11DeviceChild*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
void GetDevice(ID3D11Device** ppDevice);
[VtblIndex(4)]
HResult GetPrivateData(Guid* guid, uint* pDataSize, void* pData);
[VtblIndex(5)]
HResult SetPrivateData(Guid* guid, uint DataSize, void* pData);
[VtblIndex(6)]
HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")]
[NativeTypeName("struct ID3D11DeviceContext : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11DeviceContext : INativeGuid
public unsafe partial struct ID3D11DeviceContext : ID3D11DeviceContext.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceContext
{
@@ -969,5 +969,331 @@ public unsafe partial struct ID3D11DeviceContext : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext*, Bool32, ID3D11CommandList**, int>)(lpVtbl[114]))((ID3D11DeviceContext*)Unsafe.AsPointer(ref this), RestoreDeferredContextState, ppCommandList);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void VSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(8)]
void PSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(9)]
void PSSetShader(ID3D11PixelShader* pPixelShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(10)]
void PSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(11)]
void VSSetShader(ID3D11VertexShader* pVertexShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(12)]
void DrawIndexed(uint IndexCount, uint StartIndexLocation, int BaseVertexLocation);
[VtblIndex(13)]
void Draw(uint VertexCount, uint StartVertexLocation);
[VtblIndex(14)]
HResult Map(ID3D11Resource* pResource, uint Subresource, MapMode MapType, MapFlags MapFlags, MappedSubresource* pMappedResource);
[VtblIndex(15)]
void Unmap(ID3D11Resource* pResource, uint Subresource);
[VtblIndex(16)]
void PSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(17)]
void IASetInputLayout(ID3D11InputLayout* pInputLayout);
[VtblIndex(18)]
void IASetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets);
[VtblIndex(19)]
void IASetIndexBuffer(ID3D11Buffer* pIndexBuffer, Graphics.Dxgi.Common.Format Format, uint Offset);
[VtblIndex(20)]
void DrawIndexedInstanced(uint IndexCountPerInstance, uint InstanceCount, uint StartIndexLocation, int BaseVertexLocation, uint StartInstanceLocation);
[VtblIndex(21)]
void DrawInstanced(uint VertexCountPerInstance, uint InstanceCount, uint StartVertexLocation, uint StartInstanceLocation);
[VtblIndex(22)]
void GSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(23)]
void GSSetShader(ID3D11GeometryShader* pShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(24)]
void IASetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology Topology);
[VtblIndex(25)]
void VSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(26)]
void VSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(27)]
void Begin(ID3D11Asynchronous* pAsync);
[VtblIndex(28)]
void End(ID3D11Asynchronous* pAsync);
[VtblIndex(29)]
HResult GetData(ID3D11Asynchronous* pAsync, void* pData, uint DataSize, uint GetDataFlags);
[VtblIndex(30)]
void SetPredication(ID3D11Predicate* pPredicate, Bool32 PredicateValue);
[VtblIndex(31)]
void GSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(32)]
void GSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(33)]
void OMSetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView);
[VtblIndex(34)]
void OMSetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView* pDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts);
[VtblIndex(35)]
void OMSetBlendState(ID3D11BlendState* pBlendState, float* BlendFactor, uint SampleMask);
[VtblIndex(36)]
void OMSetDepthStencilState(ID3D11DepthStencilState* pDepthStencilState, uint StencilRef);
[VtblIndex(37)]
void SOSetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets, uint* pOffsets);
[VtblIndex(38)]
void DrawAuto();
[VtblIndex(39)]
void DrawIndexedInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs);
[VtblIndex(40)]
void DrawInstancedIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs);
[VtblIndex(41)]
void Dispatch(uint ThreadGroupCountX, uint ThreadGroupCountY, uint ThreadGroupCountZ);
[VtblIndex(42)]
void DispatchIndirect(ID3D11Buffer* pBufferForArgs, uint AlignedByteOffsetForArgs);
[VtblIndex(43)]
void RSSetState(ID3D11RasterizerState* pRasterizerState);
[VtblIndex(44)]
void RSSetViewports(uint NumViewports, Viewport* pViewports);
[VtblIndex(45)]
void RSSetScissorRects(uint NumRects, RawRect* pRects);
[VtblIndex(46)]
void CopySubresourceRegion(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox);
[VtblIndex(47)]
void CopyResource(ID3D11Resource* pDstResource, ID3D11Resource* pSrcResource);
[VtblIndex(48)]
void UpdateSubresource(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch);
[VtblIndex(49)]
void CopyStructureCount(ID3D11Buffer* pDstBuffer, uint DstAlignedByteOffset, ID3D11UnorderedAccessView* pSrcView);
[VtblIndex(50)]
void ClearRenderTargetView(ID3D11RenderTargetView* pRenderTargetView, float* ColorRGBA);
[VtblIndex(51)]
void ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView* pUnorderedAccessView, uint* Values);
[VtblIndex(52)]
void ClearUnorderedAccessViewFloat(ID3D11UnorderedAccessView* pUnorderedAccessView, float* Values);
[VtblIndex(53)]
void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil);
[VtblIndex(54)]
void GenerateMips(ID3D11ShaderResourceView* pShaderResourceView);
[VtblIndex(55)]
void SetResourceMinLOD(ID3D11Resource* pResource, float MinLOD);
[VtblIndex(56)]
float GetResourceMinLOD(ID3D11Resource* pResource);
[VtblIndex(57)]
void ResolveSubresource(ID3D11Resource* pDstResource, uint DstSubresource, ID3D11Resource* pSrcResource, uint SrcSubresource, Graphics.Dxgi.Common.Format Format);
[VtblIndex(58)]
void ExecuteCommandList(ID3D11CommandList* pCommandList, Bool32 RestoreContextState);
[VtblIndex(59)]
void HSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(60)]
void HSSetShader(ID3D11HullShader* pHullShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(61)]
void HSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(62)]
void HSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(63)]
void DSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(64)]
void DSSetShader(ID3D11DomainShader* pDomainShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(65)]
void DSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(66)]
void DSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(67)]
void CSSetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(68)]
void CSSetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews, uint* pUAVInitialCounts);
[VtblIndex(69)]
void CSSetShader(ID3D11ComputeShader* pComputeShader, ID3D11ClassInstance** ppClassInstances, uint NumClassInstances);
[VtblIndex(70)]
void CSSetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(71)]
void CSSetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(72)]
void VSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(73)]
void PSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(74)]
void PSGetShader(ID3D11PixelShader** ppPixelShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(75)]
void PSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(76)]
void VSGetShader(ID3D11VertexShader** ppVertexShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(77)]
void PSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(78)]
void IAGetInputLayout(ID3D11InputLayout** ppInputLayout);
[VtblIndex(79)]
void IAGetVertexBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppVertexBuffers, uint* pStrides, uint* pOffsets);
[VtblIndex(80)]
void IAGetIndexBuffer(ID3D11Buffer** pIndexBuffer, Graphics.Dxgi.Common.Format* Format, uint* Offset);
[VtblIndex(81)]
void GSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(82)]
void GSGetShader(ID3D11GeometryShader** ppGeometryShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(83)]
void IAGetPrimitiveTopology(Graphics.Direct3D.PrimitiveTopology* pTopology);
[VtblIndex(84)]
void VSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(85)]
void VSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(86)]
void GetPredication(ID3D11Predicate** ppPredicate, Bool32* pPredicateValue);
[VtblIndex(87)]
void GSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(88)]
void GSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(89)]
void OMGetRenderTargets(uint NumViews, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView);
[VtblIndex(90)]
void OMGetRenderTargetsAndUnorderedAccessViews(uint NumRTVs, ID3D11RenderTargetView** ppRenderTargetViews, ID3D11DepthStencilView** ppDepthStencilView, uint UAVStartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews);
[VtblIndex(91)]
void OMGetBlendState(ID3D11BlendState** ppBlendState, float* BlendFactor, uint* pSampleMask);
[VtblIndex(92)]
void OMGetDepthStencilState(ID3D11DepthStencilState** ppDepthStencilState, uint* pStencilRef);
[VtblIndex(93)]
void SOGetTargets(uint NumBuffers, ID3D11Buffer** ppSOTargets);
[VtblIndex(94)]
void RSGetState(ID3D11RasterizerState** ppRasterizerState);
[VtblIndex(95)]
void RSGetViewports(uint* pNumViewports, Viewport* pViewports);
[VtblIndex(96)]
void RSGetScissorRects(uint* pNumRects, RawRect* pRects);
[VtblIndex(97)]
void HSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(98)]
void HSGetShader(ID3D11HullShader** ppHullShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(99)]
void HSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(100)]
void HSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(101)]
void DSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(102)]
void DSGetShader(ID3D11DomainShader** ppDomainShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(103)]
void DSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(104)]
void DSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(105)]
void CSGetShaderResources(uint StartSlot, uint NumViews, ID3D11ShaderResourceView** ppShaderResourceViews);
[VtblIndex(106)]
void CSGetUnorderedAccessViews(uint StartSlot, uint NumUAVs, ID3D11UnorderedAccessView** ppUnorderedAccessViews);
[VtblIndex(107)]
void CSGetShader(ID3D11ComputeShader** ppComputeShader, ID3D11ClassInstance** ppClassInstances, uint* pNumClassInstances);
[VtblIndex(108)]
void CSGetSamplers(uint StartSlot, uint NumSamplers, ID3D11SamplerState** ppSamplers);
[VtblIndex(109)]
void CSGetConstantBuffers(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers);
[VtblIndex(110)]
void ClearState();
[VtblIndex(111)]
void Flush();
[VtblIndex(112)]
DeviceContextType GetType();
[VtblIndex(113)]
uint GetContextFlags();
[VtblIndex(114)]
HResult FinishCommandList(Bool32 RestoreDeferredContextState, ID3D11CommandList** ppCommandList);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1")]
[NativeTypeName("struct ID3D11DeviceContext1 : ID3D11DeviceContext")]
[NativeInheritance("ID3D11DeviceContext")]
public unsafe partial struct ID3D11DeviceContext1 : INativeGuid
public unsafe partial struct ID3D11DeviceContext1 : ID3D11DeviceContext1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceContext1
{
@@ -165,9 +165,9 @@ public unsafe partial struct ID3D11DeviceContext1 : INativeGuid
/// <inheritdoc cref="ID3D11DeviceContext.Map" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(14)]
public HResult Map(ID3D11Resource* pResource, uint Subresource, MapMode MapType, uint MapFlags, MappedSubresource* pMappedResource)
public HResult Map(ID3D11Resource* pResource, uint Subresource, MapMode MapType, MapFlags MapFlags, MappedSubresource* pMappedResource)
{
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext1*, ID3D11Resource*, uint, MapMode, uint, MappedSubresource*, int>)(lpVtbl[14]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource);
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext1*, ID3D11Resource*, uint, MapMode, MapFlags, MappedSubresource*, int>)(lpVtbl[14]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource);
}
/// <inheritdoc cref="ID3D11DeviceContext.Unmap" />
@@ -477,9 +477,9 @@ public unsafe partial struct ID3D11DeviceContext1 : INativeGuid
/// <inheritdoc cref="ID3D11DeviceContext.ClearDepthStencilView" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(53)]
public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil)
public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil)
{
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext1*, ID3D11DepthStencilView*, uint, float, byte, void>)(lpVtbl[53]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil);
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext1*, ID3D11DepthStencilView*, ClearFlags, float, byte, void>)(lpVtbl[53]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil);
}
/// <inheritdoc cref="ID3D11DeviceContext.GenerateMips" />
@@ -1121,5 +1121,64 @@ public unsafe partial struct ID3D11DeviceContext1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext1*, ID3D11View*, RawRect*, uint, void>)(lpVtbl[133]))((ID3D11DeviceContext1*)Unsafe.AsPointer(ref this), pResourceView, pRects, NumRects);
}
public interface Interface : ID3D11DeviceContext.Interface
{
[VtblIndex(115)]
void CopySubresourceRegion1(ID3D11Resource* pDstResource, uint DstSubresource, uint DstX, uint DstY, uint DstZ, ID3D11Resource* pSrcResource, uint SrcSubresource, Box* pSrcBox, uint CopyFlags);
[VtblIndex(116)]
void UpdateSubresource1(ID3D11Resource* pDstResource, uint DstSubresource, Box* pDstBox, void* pSrcData, uint SrcRowPitch, uint SrcDepthPitch, uint CopyFlags);
[VtblIndex(117)]
void DiscardResource(ID3D11Resource* pResource);
[VtblIndex(118)]
void DiscardView(ID3D11View* pResourceView);
[VtblIndex(119)]
void VSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(120)]
void HSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(121)]
void DSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(122)]
void GSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(123)]
void PSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(124)]
void CSSetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(125)]
void VSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(126)]
void HSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(127)]
void DSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(128)]
void GSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(129)]
void PSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(130)]
void CSGetConstantBuffers1(uint StartSlot, uint NumBuffers, ID3D11Buffer** ppConstantBuffers, uint* pFirstConstant, uint* pNumConstants);
[VtblIndex(131)]
void SwapDeviceContextState(ID3DDeviceContextState* pState, ID3DDeviceContextState** ppPreviousState);
[VtblIndex(132)]
void ClearView(ID3D11View* pView, float* Color, RawRect* pRect, uint NumRects);
[VtblIndex(133)]
void DiscardView1(ID3D11View* pResourceView, RawRect* pRects, uint NumRects);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("420d5b32-b90c-4da4-bef0-359f6a24a83a")]
[NativeTypeName("struct ID3D11DeviceContext2 : ID3D11DeviceContext1")]
[NativeInheritance("ID3D11DeviceContext1")]
public unsafe partial struct ID3D11DeviceContext2 : INativeGuid
public unsafe partial struct ID3D11DeviceContext2 : ID3D11DeviceContext2.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceContext2
{
@@ -1201,5 +1201,37 @@ public unsafe partial struct ID3D11DeviceContext2 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext2*, void>)(lpVtbl[143]))((ID3D11DeviceContext2*)Unsafe.AsPointer(ref this));
}
public interface Interface : ID3D11DeviceContext1.Interface
{
[VtblIndex(134)]
HResult UpdateTileMappings(ID3D11Resource* pTiledResource, uint NumTiledResourceRegions, TiledResourceCoordinate* pTiledResourceRegionStartCoordinates, TileRegionSize* pTiledResourceRegionSizes, ID3D11Buffer* pTilePool, uint NumRanges, uint* pRangeFlags, uint* pTilePoolStartOffsets, uint* pRangeTileCounts, uint Flags);
[VtblIndex(135)]
HResult CopyTileMappings(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestRegionStartCoordinate, ID3D11Resource* pSourceTiledResource, TiledResourceCoordinate* pSourceRegionStartCoordinate, TileRegionSize* pTileRegionSize, uint Flags);
[VtblIndex(136)]
void CopyTiles(ID3D11Resource* pTiledResource, TiledResourceCoordinate* pTileRegionStartCoordinate, TileRegionSize* pTileRegionSize, ID3D11Buffer* pBuffer, ulong BufferStartOffsetInBytes, uint Flags);
[VtblIndex(137)]
void UpdateTiles(ID3D11Resource* pDestTiledResource, TiledResourceCoordinate* pDestTileRegionStartCoordinate, TileRegionSize* pDestTileRegionSize, void* pSourceTileData, uint Flags);
[VtblIndex(138)]
HResult ResizeTilePool(ID3D11Buffer* pTilePool, ulong NewSizeInBytes);
[VtblIndex(139)]
void TiledResourceBarrier(ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier);
[VtblIndex(140)]
Bool32 IsAnnotationEnabled();
[VtblIndex(141)]
void SetMarkerInt(ushort* pLabel, int Data);
[VtblIndex(142)]
void BeginEventInt(ushort* pLabel, int Data);
[VtblIndex(143)]
void EndEvent();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("b4e3c01d-e79e-4637-91b2-510e9f4c9b8f")]
[NativeTypeName("struct ID3D11DeviceContext3 : ID3D11DeviceContext2")]
[NativeInheritance("ID3D11DeviceContext2")]
public unsafe partial struct ID3D11DeviceContext3 : INativeGuid
public unsafe partial struct ID3D11DeviceContext3 : ID3D11DeviceContext3.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceContext3
{
@@ -165,9 +165,9 @@ public unsafe partial struct ID3D11DeviceContext3 : INativeGuid
/// <inheritdoc cref="ID3D11DeviceContext.Map" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(14)]
public HResult Map(ID3D11Resource* pResource, uint Subresource, MapMode MapType, uint MapFlags, MappedSubresource* pMappedResource)
public HResult Map(ID3D11Resource* pResource, uint Subresource, MapMode MapType, MapFlags MapFlags, MappedSubresource* pMappedResource)
{
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext3*, ID3D11Resource*, uint, MapMode, uint, MappedSubresource*, int>)(lpVtbl[14]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource);
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext3*, ID3D11Resource*, uint, MapMode, MapFlags, MappedSubresource*, int>)(lpVtbl[14]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pResource, Subresource, MapType, MapFlags, pMappedResource);
}
/// <inheritdoc cref="ID3D11DeviceContext.Unmap" />
@@ -477,9 +477,9 @@ public unsafe partial struct ID3D11DeviceContext3 : INativeGuid
/// <inheritdoc cref="ID3D11DeviceContext.ClearDepthStencilView" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(53)]
public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, uint ClearFlags, float Depth, byte Stencil)
public void ClearDepthStencilView(ID3D11DepthStencilView* pDepthStencilView, ClearFlags ClearFlags, float Depth, byte Stencil)
{
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext3*, ID3D11DepthStencilView*, uint, float, byte, void>)(lpVtbl[53]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil);
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext3*, ID3D11DepthStencilView*, ClearFlags, float, byte, void>)(lpVtbl[53]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pDepthStencilView, ClearFlags, Depth, Stencil);
}
/// <inheritdoc cref="ID3D11DeviceContext.GenerateMips" />
@@ -1225,5 +1225,16 @@ public unsafe partial struct ID3D11DeviceContext3 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11DeviceContext3*, Bool32*, void>)(lpVtbl[146]))((ID3D11DeviceContext3*)Unsafe.AsPointer(ref this), pHwProtectionEnable);
}
public interface Interface : ID3D11DeviceContext2.Interface
{
[VtblIndex(144)]
void Flush1(ContextType ContextType, Handle hEvent);
[VtblIndex(145)]
void SetHardwareProtectionState(Bool32 HwProtectionEnable);
[VtblIndex(146)]
void GetHardwareProtectionState(Bool32* pHwProtectionEnable);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("917600da-f58c-4c33-98d8-3e15b390fa24")]
[NativeTypeName("struct ID3D11DeviceContext4 : ID3D11DeviceContext3")]
[NativeInheritance("ID3D11DeviceContext3")]
public unsafe partial struct ID3D11DeviceContext4 : INativeGuid
public unsafe partial struct ID3D11DeviceContext4 : ID3D11DeviceContext4.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DeviceContext4
{
@@ -1241,5 +1241,13 @@ public unsafe partial struct ID3D11DeviceContext4 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11DeviceContext4*, ID3D11Fence*, ulong, int>)(lpVtbl[148]))((ID3D11DeviceContext4*)Unsafe.AsPointer(ref this), pFence, Value);
}
public interface Interface : ID3D11DeviceContext3.Interface
{
[VtblIndex(147)]
HResult Signal(ID3D11Fence* pFence, ulong Value);
[VtblIndex(148)]
HResult Wait(ID3D11Fence* pFence, ulong Value);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("f582c508-0f36-490c-9977-31eece268cfa")]
[NativeTypeName("struct ID3D11DomainShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11DomainShader : INativeGuid
public unsafe partial struct ID3D11DomainShader : ID3D11DomainShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11DomainShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11DomainShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11DomainShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11DomainShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("affde9d1-1df7-4bb7-8a34-0f46251dab80")]
[NativeTypeName("struct ID3D11Fence : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11Fence : INativeGuid
public unsafe partial struct ID3D11Fence : ID3D11Fence.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Fence
{
@@ -129,5 +129,16 @@ public unsafe partial struct ID3D11Fence : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Fence*, ulong, Handle, int>)(lpVtbl[9]))((ID3D11Fence*)Unsafe.AsPointer(ref this), Value, hEvent);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult CreateSharedHandle(Security.SECURITY_ATTRIBUTES* pAttributes, uint dwAccess, ushort* lpName, Handle* pHandle);
[VtblIndex(8)]
ulong GetCompletedValue();
[VtblIndex(9)]
HResult SetEventOnCompletion(ulong Value, Handle hEvent);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("54133220-1ce8-43d3-8236-9855c5ceecff")]
[NativeTypeName("struct ID3D11FunctionLinkingGraph : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11FunctionLinkingGraph : INativeGuid
public unsafe partial struct ID3D11FunctionLinkingGraph : ID3D11FunctionLinkingGraph.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11FunctionLinkingGraph
{
@@ -137,5 +137,31 @@ public unsafe partial struct ID3D11FunctionLinkingGraph : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11FunctionLinkingGraph*, uint, Graphics.Direct3D.ID3DBlob**, int>)(lpVtbl[10]))((ID3D11FunctionLinkingGraph*)Unsafe.AsPointer(ref this), uFlags, ppBuffer);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult CreateModuleInstance(ID3D11ModuleInstance** ppModuleInstance, Graphics.Direct3D.ID3DBlob** ppErrorBuffer);
[VtblIndex(4)]
HResult SetInputSignature(ParameterDescription* pInputParameters, uint cInputParameters, ID3D11LinkingNode** ppInputNode);
[VtblIndex(5)]
HResult SetOutputSignature(ParameterDescription* pOutputParameters, uint cOutputParameters, ID3D11LinkingNode** ppOutputNode);
[VtblIndex(6)]
HResult CallFunction(sbyte* pModuleInstanceNamespace, ID3D11Module* pModuleWithFunctionPrototype, sbyte* pFunctionName, ID3D11LinkingNode** ppCallNode);
[VtblIndex(7)]
HResult PassValue(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, ID3D11LinkingNode* pDstNode, int DstParameterIndex);
[VtblIndex(8)]
HResult PassValueWithSwizzle(ID3D11LinkingNode* pSrcNode, int SrcParameterIndex, sbyte* pSrcSwizzle, ID3D11LinkingNode* pDstNode, int DstParameterIndex, sbyte* pDstSwizzle);
[VtblIndex(9)]
HResult GetLastError(Graphics.Direct3D.ID3DBlob** ppErrorBuffer);
[VtblIndex(10)]
HResult GenerateHlsl(uint uFlags, Graphics.Direct3D.ID3DBlob** ppBuffer);
}
}

View File

@@ -12,7 +12,7 @@ namespace Win32.Graphics.Direct3D11;
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11FunctionParameterReflection"]/*' />
/// <unmanaged>ID3D11FunctionParameterReflection</unmanaged>
[Guid("42757488-334f-47fe-982e-1a65d08cc462")]
public unsafe partial struct ID3D11FunctionParameterReflection : INativeGuid
public unsafe partial struct ID3D11FunctionParameterReflection : ID3D11FunctionParameterReflection.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11FunctionParameterReflection
{
@@ -53,5 +53,10 @@ public unsafe partial struct ID3D11FunctionParameterReflection : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11FunctionParameterReflection*, ParameterDescription*, int>)(lpVtbl[0]))((ID3D11FunctionParameterReflection*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface
{
[VtblIndex(0)]
HResult GetDesc(ParameterDescription* pDesc);
}
}

View File

@@ -12,7 +12,7 @@ namespace Win32.Graphics.Direct3D11;
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11FunctionReflection"]/*' />
/// <unmanaged>ID3D11FunctionReflection</unmanaged>
[Guid("207bcecb-d683-4a06-a8a3-9b149b9f73a4")]
public unsafe partial struct ID3D11FunctionReflection : INativeGuid
public unsafe partial struct ID3D11FunctionReflection : ID3D11FunctionReflection.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11FunctionReflection
{
@@ -101,5 +101,28 @@ public unsafe partial struct ID3D11FunctionReflection : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11FunctionReflection*, int, ID3D11FunctionParameterReflection>)(lpVtbl[6]))((ID3D11FunctionReflection*)Unsafe.AsPointer(ref this), ParameterIndex);
}
public interface Interface
{
[VtblIndex(0)]
HResult GetDesc(FunctionDescription* pDesc);
[VtblIndex(1)]
ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint BufferIndex);
[VtblIndex(2)]
ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name);
[VtblIndex(3)]
HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc);
[VtblIndex(4)]
ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name);
[VtblIndex(5)]
HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc);
[VtblIndex(6)]
ID3D11FunctionParameterReflection GetFunctionParameter(int ParameterIndex);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("38325b96-effb-4022-ba02-2e795b70275c")]
[NativeTypeName("struct ID3D11GeometryShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11GeometryShader : INativeGuid
public unsafe partial struct ID3D11GeometryShader : ID3D11GeometryShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11GeometryShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11GeometryShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11GeometryShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11GeometryShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("8e5c6061-628a-4c8e-8264-bbe45cb3d5dd")]
[NativeTypeName("struct ID3D11HullShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11HullShader : INativeGuid
public unsafe partial struct ID3D11HullShader : ID3D11HullShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11HullShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11HullShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11HullShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11HullShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("6543dbb6-1b48-42f5-ab82-e97ec74326f6")]
[NativeTypeName("struct ID3D11InfoQueue : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11InfoQueue : INativeGuid
public unsafe partial struct ID3D11InfoQueue : ID3D11InfoQueue.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11InfoQueue
{
@@ -353,5 +353,112 @@ public unsafe partial struct ID3D11InfoQueue : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11InfoQueue*, Bool32>)(lpVtbl[37]))((ID3D11InfoQueue*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult SetMessageCountLimit(ulong MessageCountLimit);
[VtblIndex(4)]
void ClearStoredMessages();
[VtblIndex(5)]
HResult GetMessage(ulong MessageIndex, Message* pMessage, nuint* pMessageByteLength);
[VtblIndex(6)]
ulong GetNumMessagesAllowedByStorageFilter();
[VtblIndex(7)]
ulong GetNumMessagesDeniedByStorageFilter();
[VtblIndex(8)]
ulong GetNumStoredMessages();
[VtblIndex(9)]
ulong GetNumStoredMessagesAllowedByRetrievalFilter();
[VtblIndex(10)]
ulong GetNumMessagesDiscardedByMessageCountLimit();
[VtblIndex(11)]
ulong GetMessageCountLimit();
[VtblIndex(12)]
HResult AddStorageFilterEntries(InfoQueueFilter* pFilter);
[VtblIndex(13)]
HResult GetStorageFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength);
[VtblIndex(14)]
void ClearStorageFilter();
[VtblIndex(15)]
HResult PushEmptyStorageFilter();
[VtblIndex(16)]
HResult PushCopyOfStorageFilter();
[VtblIndex(17)]
HResult PushStorageFilter(InfoQueueFilter* pFilter);
[VtblIndex(18)]
void PopStorageFilter();
[VtblIndex(19)]
uint GetStorageFilterStackSize();
[VtblIndex(20)]
HResult AddRetrievalFilterEntries(InfoQueueFilter* pFilter);
[VtblIndex(21)]
HResult GetRetrievalFilter(InfoQueueFilter* pFilter, nuint* pFilterByteLength);
[VtblIndex(22)]
void ClearRetrievalFilter();
[VtblIndex(23)]
HResult PushEmptyRetrievalFilter();
[VtblIndex(24)]
HResult PushCopyOfRetrievalFilter();
[VtblIndex(25)]
HResult PushRetrievalFilter(InfoQueueFilter* pFilter);
[VtblIndex(26)]
void PopRetrievalFilter();
[VtblIndex(27)]
uint GetRetrievalFilterStackSize();
[VtblIndex(28)]
HResult AddMessage(MessageCategory Category, MessageSeverity Severity, MessageId ID, sbyte* pDescription);
[VtblIndex(29)]
HResult AddApplicationMessage(MessageSeverity Severity, sbyte* pDescription);
[VtblIndex(30)]
HResult SetBreakOnCategory(MessageCategory Category, Bool32 bEnable);
[VtblIndex(31)]
HResult SetBreakOnSeverity(MessageSeverity Severity, Bool32 bEnable);
[VtblIndex(32)]
HResult SetBreakOnID(MessageId ID, Bool32 bEnable);
[VtblIndex(33)]
Bool32 GetBreakOnCategory(MessageCategory Category);
[VtblIndex(34)]
Bool32 GetBreakOnSeverity(MessageSeverity Severity);
[VtblIndex(35)]
Bool32 GetBreakOnID(MessageId ID);
[VtblIndex(36)]
void SetMuteDebugOutput(Bool32 bMute);
[VtblIndex(37)]
Bool32 GetMuteDebugOutput();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("e4819ddc-4cf0-4025-bd26-5de82a3e07b7")]
[NativeTypeName("struct ID3D11InputLayout : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11InputLayout : INativeGuid
public unsafe partial struct ID3D11InputLayout : ID3D11InputLayout.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11InputLayout
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11InputLayout : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11InputLayout*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11InputLayout*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("54384f1b-5b3e-4bb7-ae01-60ba3097cbb6")]
[NativeTypeName("struct ID3D11LibraryReflection : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11LibraryReflection : INativeGuid
public unsafe partial struct ID3D11LibraryReflection : ID3D11LibraryReflection.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11LibraryReflection
{
@@ -89,5 +89,13 @@ public unsafe partial struct ID3D11LibraryReflection : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11LibraryReflection*, int, ID3D11FunctionReflection>)(lpVtbl[4]))((ID3D11LibraryReflection*)Unsafe.AsPointer(ref this), FunctionIndex);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult GetDesc(LibraryDescription* pDesc);
[VtblIndex(4)]
ID3D11FunctionReflection GetFunctionByIndex(int FunctionIndex);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("59a6cd0e-e10d-4c1f-88c0-63aba1daf30e")]
[NativeTypeName("struct ID3D11Linker : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11Linker : INativeGuid
public unsafe partial struct ID3D11Linker : ID3D11Linker.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Linker
{
@@ -97,5 +97,16 @@ public unsafe partial struct ID3D11Linker : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Linker*, uint, uint, int>)(lpVtbl[5]))((ID3D11Linker*)Unsafe.AsPointer(ref this), uCBufferSlot, uCBufferEntry);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult Link(ID3D11ModuleInstance* pEntry, sbyte* pEntryName, sbyte* pTargetName, uint uFlags, Graphics.Direct3D.ID3DBlob** ppShaderBlob, Graphics.Direct3D.ID3DBlob** ppErrorBuffer);
[VtblIndex(4)]
HResult UseLibrary(ID3D11ModuleInstance* pLibraryMI);
[VtblIndex(5)]
HResult AddClipPlaneFromCBuffer(uint uCBufferSlot, uint uCBufferEntry);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("d80dd70c-8d2f-4751-94a1-03c79b3556db")]
[NativeTypeName("struct ID3D11LinkingNode : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11LinkingNode : INativeGuid
public unsafe partial struct ID3D11LinkingNode : ID3D11LinkingNode.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11LinkingNode
{
@@ -74,5 +74,8 @@ public unsafe partial struct ID3D11LinkingNode : INativeGuid
return ((delegate* unmanaged[Stdcall]<ID3D11LinkingNode*, uint>)(lpVtbl[2]))((ID3D11LinkingNode*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("cac701ee-80fc-4122-8242-10b39c8cec34")]
[NativeTypeName("struct ID3D11Module : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11Module : INativeGuid
public unsafe partial struct ID3D11Module : ID3D11Module.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Module
{
@@ -81,5 +81,10 @@ public unsafe partial struct ID3D11Module : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Module*, sbyte*, ID3D11ModuleInstance**, int>)(lpVtbl[3]))((ID3D11Module*)Unsafe.AsPointer(ref this), pNamespace, ppModuleInstance);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult CreateInstance(sbyte* pNamespace, ID3D11ModuleInstance** ppModuleInstance);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("469e07f7-045a-48d5-aa12-68a478cdf75d")]
[NativeTypeName("struct ID3D11ModuleInstance : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11ModuleInstance : INativeGuid
public unsafe partial struct ID3D11ModuleInstance : ID3D11ModuleInstance.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ModuleInstance
{
@@ -153,5 +153,37 @@ public unsafe partial struct ID3D11ModuleInstance : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ModuleInstance*, sbyte*, uint, uint, int>)(lpVtbl[12]))((ID3D11ModuleInstance*)Unsafe.AsPointer(ref this), pSrvName, uDstUavSlot, uCount);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult BindConstantBuffer(uint uSrcSlot, uint uDstSlot, uint cbDstOffset);
[VtblIndex(4)]
HResult BindConstantBufferByName(sbyte* pName, uint uDstSlot, uint cbDstOffset);
[VtblIndex(5)]
HResult BindResource(uint uSrcSlot, uint uDstSlot, uint uCount);
[VtblIndex(6)]
HResult BindResourceByName(sbyte* pName, uint uDstSlot, uint uCount);
[VtblIndex(7)]
HResult BindSampler(uint uSrcSlot, uint uDstSlot, uint uCount);
[VtblIndex(8)]
HResult BindSamplerByName(sbyte* pName, uint uDstSlot, uint uCount);
[VtblIndex(9)]
HResult BindUnorderedAccessView(uint uSrcSlot, uint uDstSlot, uint uCount);
[VtblIndex(10)]
HResult BindUnorderedAccessViewByName(sbyte* pName, uint uDstSlot, uint uCount);
[VtblIndex(11)]
HResult BindResourceAsUnorderedAccessView(uint uSrcSrvSlot, uint uDstUavSlot, uint uCount);
[VtblIndex(12)]
HResult BindResourceAsUnorderedAccessViewByName(sbyte* pSrvName, uint uDstUavSlot, uint uCount);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9b7e4e00-342c-4106-a19f-4f2704f689f0")]
[NativeTypeName("struct ID3D11Multithread : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11Multithread : INativeGuid
public unsafe partial struct ID3D11Multithread : ID3D11Multithread.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Multithread
{
@@ -105,5 +105,19 @@ public unsafe partial struct ID3D11Multithread : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Multithread*, Bool32>)(lpVtbl[6]))((ID3D11Multithread*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
void Enter();
[VtblIndex(4)]
void Leave();
[VtblIndex(5)]
Bool32 SetMultithreadProtected(Bool32 bMTProtect);
[VtblIndex(6)]
Bool32 GetMultithreadProtected();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("ea82e40d-51dc-4f33-93d4-db7c9125ae8c")]
[NativeTypeName("struct ID3D11PixelShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11PixelShader : INativeGuid
public unsafe partial struct ID3D11PixelShader : ID3D11PixelShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11PixelShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11PixelShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11PixelShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11PixelShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9eb576dd-9f77-4d86-81aa-8bab5fe490e2")]
[NativeTypeName("struct ID3D11Predicate : ID3D11Query")]
[NativeInheritance("ID3D11Query")]
public unsafe partial struct ID3D11Predicate : INativeGuid
public unsafe partial struct ID3D11Predicate : ID3D11Predicate.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Predicate
{
@@ -121,5 +121,8 @@ public unsafe partial struct ID3D11Predicate : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Predicate*, QueryDescription*, void>)(lpVtbl[8]))((ID3D11Predicate*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Query.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("d6c00747-87b7-425e-b84d-44d108560afd")]
[NativeTypeName("struct ID3D11Query : ID3D11Asynchronous")]
[NativeInheritance("ID3D11Asynchronous")]
public unsafe partial struct ID3D11Query : INativeGuid
public unsafe partial struct ID3D11Query : ID3D11Query.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Query
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11Query : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Query*, QueryDescription*, void>)(lpVtbl[8]))((ID3D11Query*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Asynchronous.Interface
{
[VtblIndex(8)]
void GetDesc(QueryDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("631b4766-36dc-461d-8db6-c47e13e60916")]
[NativeTypeName("struct ID3D11Query1 : ID3D11Query")]
[NativeInheritance("ID3D11Query")]
public unsafe partial struct ID3D11Query1 : INativeGuid
public unsafe partial struct ID3D11Query1 : ID3D11Query1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Query1
{
@@ -129,5 +129,10 @@ public unsafe partial struct ID3D11Query1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Query1*, QueryDescription1*, void>)(lpVtbl[9]))((ID3D11Query1*)Unsafe.AsPointer(ref this), pDesc1);
}
public interface Interface : ID3D11Query.Interface
{
[VtblIndex(9)]
void GetDesc1(QueryDescription1* pDesc1);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7")]
[NativeTypeName("struct ID3D11RasterizerState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11RasterizerState : INativeGuid
public unsafe partial struct ID3D11RasterizerState : ID3D11RasterizerState.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RasterizerState
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11RasterizerState : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11RasterizerState*, RasterizerDescription*, void>)(lpVtbl[7]))((ID3D11RasterizerState*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetDesc(RasterizerDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1217d7a6-5039-418c-b042-9cbe256afd6e")]
[NativeTypeName("struct ID3D11RasterizerState1 : ID3D11RasterizerState")]
[NativeInheritance("ID3D11RasterizerState")]
public unsafe partial struct ID3D11RasterizerState1 : INativeGuid
public unsafe partial struct ID3D11RasterizerState1 : ID3D11RasterizerState1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RasterizerState1
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11RasterizerState1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11RasterizerState1*, RasterizerDescription1*, void>)(lpVtbl[8]))((ID3D11RasterizerState1*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11RasterizerState.Interface
{
[VtblIndex(8)]
void GetDesc1(RasterizerDescription1* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("6fbd02fb-209f-46c4-b059-2ed15586a6ac")]
[NativeTypeName("struct ID3D11RasterizerState2 : ID3D11RasterizerState1")]
[NativeInheritance("ID3D11RasterizerState1")]
public unsafe partial struct ID3D11RasterizerState2 : INativeGuid
public unsafe partial struct ID3D11RasterizerState2 : ID3D11RasterizerState2.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RasterizerState2
{
@@ -129,5 +129,10 @@ public unsafe partial struct ID3D11RasterizerState2 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11RasterizerState2*, RasterizerDescription2*, void>)(lpVtbl[9]))((ID3D11RasterizerState2*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11RasterizerState1.Interface
{
[VtblIndex(9)]
void GetDesc2(RasterizerDescription2* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("03916615-c644-418c-9bf4-75db5be63ca0")]
[NativeTypeName("struct ID3D11RefDefaultTrackingOptions : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11RefDefaultTrackingOptions : INativeGuid
public unsafe partial struct ID3D11RefDefaultTrackingOptions : ID3D11RefDefaultTrackingOptions.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RefDefaultTrackingOptions
{
@@ -81,5 +81,10 @@ public unsafe partial struct ID3D11RefDefaultTrackingOptions : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11RefDefaultTrackingOptions*, uint, uint, int>)(lpVtbl[3]))((ID3D11RefDefaultTrackingOptions*)Unsafe.AsPointer(ref this), ResourceTypeFlags, Options);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult SetTrackingOptions(uint ResourceTypeFlags, uint Options);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("193dacdf-0db2-4c05-a55c-ef06cac56fd9")]
[NativeTypeName("struct ID3D11RefTrackingOptions : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11RefTrackingOptions : INativeGuid
public unsafe partial struct ID3D11RefTrackingOptions : ID3D11RefTrackingOptions.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RefTrackingOptions
{
@@ -81,5 +81,10 @@ public unsafe partial struct ID3D11RefTrackingOptions : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11RefTrackingOptions*, uint, int>)(lpVtbl[3]))((ID3D11RefTrackingOptions*)Unsafe.AsPointer(ref this), uOptions);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult SetTrackingOptions(uint uOptions);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("dfdba067-0b8d-4865-875b-d7b4516cc164")]
[NativeTypeName("struct ID3D11RenderTargetView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11RenderTargetView : INativeGuid
public unsafe partial struct ID3D11RenderTargetView : ID3D11RenderTargetView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RenderTargetView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11RenderTargetView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11RenderTargetView*, RenderTargetViewDescription*, void>)(lpVtbl[8]))((ID3D11RenderTargetView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(RenderTargetViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("ffbe2e23-f011-418a-ac56-5ceed7c5b94b")]
[NativeTypeName("struct ID3D11RenderTargetView1 : ID3D11RenderTargetView")]
[NativeInheritance("ID3D11RenderTargetView")]
public unsafe partial struct ID3D11RenderTargetView1 : INativeGuid
public unsafe partial struct ID3D11RenderTargetView1 : ID3D11RenderTargetView1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11RenderTargetView1
{
@@ -129,5 +129,10 @@ public unsafe partial struct ID3D11RenderTargetView1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11RenderTargetView1*, RenderTargetViewDescription1*, void>)(lpVtbl[9]))((ID3D11RenderTargetView1*)Unsafe.AsPointer(ref this), pDesc1);
}
public interface Interface : ID3D11RenderTargetView.Interface
{
[VtblIndex(9)]
void GetDesc1(RenderTargetViewDescription1* pDesc1);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("dc8e63f3-d12b-4952-b47b-5e45026a862d")]
[NativeTypeName("struct ID3D11Resource : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11Resource : INativeGuid
public unsafe partial struct ID3D11Resource : ID3D11Resource.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Resource
{
@@ -129,5 +129,16 @@ public unsafe partial struct ID3D11Resource : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11Resource*, uint>)(lpVtbl[9]))((ID3D11Resource*)Unsafe.AsPointer(ref this));
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetType(ResourceDimension* pResourceDimension);
[VtblIndex(8)]
void SetEvictionPriority(uint EvictionPriority);
[VtblIndex(9)]
uint GetEvictionPriority();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("da6fea51-564c-4487-9810-f0d0f9b4e3a5")]
[NativeTypeName("struct ID3D11SamplerState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11SamplerState : INativeGuid
public unsafe partial struct ID3D11SamplerState : ID3D11SamplerState.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11SamplerState
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11SamplerState : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11SamplerState*, SamplerDescription*, void>)(lpVtbl[7]))((ID3D11SamplerState*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetDesc(SamplerDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("8d536ca1-0cca-4956-a837-786963755584")]
[NativeTypeName("struct ID3D11ShaderReflection : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11ShaderReflection : INativeGuid
public unsafe partial struct ID3D11ShaderReflection : ID3D11ShaderReflection.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderReflection
{
@@ -225,5 +225,64 @@ public unsafe partial struct ID3D11ShaderReflection : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderReflection*, ulong>)(lpVtbl[21]))((ID3D11ShaderReflection*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult GetDesc(ShaderDescription* pDesc);
[VtblIndex(4)]
ID3D11ShaderReflectionConstantBuffer GetConstantBufferByIndex(uint Index);
[VtblIndex(5)]
ID3D11ShaderReflectionConstantBuffer GetConstantBufferByName(sbyte* Name);
[VtblIndex(6)]
HResult GetResourceBindingDesc(uint ResourceIndex, ShaderInputBindDescription* pDesc);
[VtblIndex(7)]
HResult GetInputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc);
[VtblIndex(8)]
HResult GetOutputParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc);
[VtblIndex(9)]
HResult GetPatchConstantParameterDesc(uint ParameterIndex, SignatureParameterDescription* pDesc);
[VtblIndex(10)]
ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name);
[VtblIndex(11)]
HResult GetResourceBindingDescByName(sbyte* Name, ShaderInputBindDescription* pDesc);
[VtblIndex(12)]
uint GetMovInstructionCount();
[VtblIndex(13)]
uint GetMovcInstructionCount();
[VtblIndex(14)]
uint GetConversionInstructionCount();
[VtblIndex(15)]
uint GetBitwiseInstructionCount();
[VtblIndex(16)]
Graphics.Direct3D.Primitive GetGSInputPrimitive();
[VtblIndex(17)]
Bool32 IsSampleFrequencyShader();
[VtblIndex(18)]
uint GetNumInterfaceSlots();
[VtblIndex(19)]
HResult GetMinFeatureLevel(Graphics.Direct3D.FeatureLevel* pLevel);
[VtblIndex(20)]
uint GetThreadGroupSize(uint* pSizeX, uint* pSizeY, uint* pSizeZ);
[VtblIndex(21)]
ulong GetRequiresFlags();
}
}

View File

@@ -12,7 +12,7 @@ namespace Win32.Graphics.Direct3D11;
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11ShaderReflectionConstantBuffer"]/*' />
/// <unmanaged>ID3D11ShaderReflectionConstantBuffer</unmanaged>
[Guid("eb62d63d-93dd-4318-8ae8-c6f83ad371b8")]
public unsafe partial struct ID3D11ShaderReflectionConstantBuffer : INativeGuid
public unsafe partial struct ID3D11ShaderReflectionConstantBuffer : ID3D11ShaderReflectionConstantBuffer.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderReflectionConstantBuffer
{
@@ -69,5 +69,16 @@ public unsafe partial struct ID3D11ShaderReflectionConstantBuffer : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderReflectionConstantBuffer*, sbyte*, ID3D11ShaderReflectionVariable>)(lpVtbl[2]))((ID3D11ShaderReflectionConstantBuffer*)Unsafe.AsPointer(ref this), Name);
}
public interface Interface
{
[VtblIndex(0)]
HResult GetDesc(ShaderBufferDescription* pDesc);
[VtblIndex(1)]
ID3D11ShaderReflectionVariable GetVariableByIndex(uint Index);
[VtblIndex(2)]
ID3D11ShaderReflectionVariable GetVariableByName(sbyte* Name);
}
}

View File

@@ -12,7 +12,7 @@ namespace Win32.Graphics.Direct3D11;
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11ShaderReflectionType"]/*' />
/// <unmanaged>ID3D11ShaderReflectionType</unmanaged>
[Guid("6e6ffa6a-9bae-4613-a51e-91652d508c21")]
public unsafe partial struct ID3D11ShaderReflectionType : INativeGuid
public unsafe partial struct ID3D11ShaderReflectionType : ID3D11ShaderReflectionType.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderReflectionType
{
@@ -133,5 +133,40 @@ public unsafe partial struct ID3D11ShaderReflectionType : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderReflectionType*, ID3D11ShaderReflectionType*, int>)(lpVtbl[10]))((ID3D11ShaderReflectionType*)Unsafe.AsPointer(ref this), pBase);
}
public interface Interface
{
[VtblIndex(0)]
HResult GetDesc(ShaderTypeDescription* pDesc);
[VtblIndex(1)]
ID3D11ShaderReflectionType GetMemberTypeByIndex(uint Index);
[VtblIndex(2)]
ID3D11ShaderReflectionType GetMemberTypeByName(sbyte* Name);
[VtblIndex(3)]
sbyte* GetMemberTypeName(uint Index);
[VtblIndex(4)]
HResult IsEqual(ID3D11ShaderReflectionType* pType);
[VtblIndex(5)]
ID3D11ShaderReflectionType GetSubType();
[VtblIndex(6)]
ID3D11ShaderReflectionType GetBaseClass();
[VtblIndex(7)]
uint GetNumInterfaces();
[VtblIndex(8)]
ID3D11ShaderReflectionType GetInterfaceByIndex(uint uIndex);
[VtblIndex(9)]
HResult IsOfType(ID3D11ShaderReflectionType* pType);
[VtblIndex(10)]
HResult ImplementsInterface(ID3D11ShaderReflectionType* pBase);
}
}

View File

@@ -12,7 +12,7 @@ namespace Win32.Graphics.Direct3D11;
/// <include file='../Direct3D11.xml' path='doc/member[@name="ID3D11ShaderReflectionVariable"]/*' />
/// <unmanaged>ID3D11ShaderReflectionVariable</unmanaged>
[Guid("51f23923-f3e5-4bd1-91cb-606177d8db4c")]
public unsafe partial struct ID3D11ShaderReflectionVariable : INativeGuid
public unsafe partial struct ID3D11ShaderReflectionVariable : ID3D11ShaderReflectionVariable.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderReflectionVariable
{
@@ -77,5 +77,19 @@ public unsafe partial struct ID3D11ShaderReflectionVariable : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderReflectionVariable*, uint, uint>)(lpVtbl[3]))((ID3D11ShaderReflectionVariable*)Unsafe.AsPointer(ref this), uArrayIndex);
}
public interface Interface
{
[VtblIndex(0)]
HResult GetDesc(ShaderVariableDescription* pDesc);
[VtblIndex(1)]
ID3D11ShaderReflectionType GetType();
[VtblIndex(2)]
ID3D11ShaderReflectionConstantBuffer GetBuffer();
[VtblIndex(3)]
uint GetInterfaceSlot(uint uArrayIndex);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")]
[NativeTypeName("struct ID3D11ShaderResourceView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11ShaderResourceView : INativeGuid
public unsafe partial struct ID3D11ShaderResourceView : ID3D11ShaderResourceView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderResourceView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11ShaderResourceView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11ShaderResourceView*, ShaderResourceViewDescription*, void>)(lpVtbl[8]))((ID3D11ShaderResourceView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(ShaderResourceViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("91308b87-9040-411d-8c67-c39253ce3802")]
[NativeTypeName("struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView")]
[NativeInheritance("ID3D11ShaderResourceView")]
public unsafe partial struct ID3D11ShaderResourceView1 : INativeGuid
public unsafe partial struct ID3D11ShaderResourceView1 : ID3D11ShaderResourceView1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderResourceView1
{
@@ -129,5 +129,10 @@ public unsafe partial struct ID3D11ShaderResourceView1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11ShaderResourceView1*, ShaderResourceViewDescription1*, void>)(lpVtbl[9]))((ID3D11ShaderResourceView1*)Unsafe.AsPointer(ref this), pDesc1);
}
public interface Interface : ID3D11ShaderResourceView.Interface
{
[VtblIndex(9)]
void GetDesc1(ShaderResourceViewDescription1* pDesc1);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("36b013e6-2811-4845-baa7-d623fe0df104")]
[NativeTypeName("struct ID3D11ShaderTrace : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11ShaderTrace : INativeGuid
public unsafe partial struct ID3D11ShaderTrace : ID3D11ShaderTrace.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderTrace
{
@@ -137,5 +137,31 @@ public unsafe partial struct ID3D11ShaderTrace : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderTrace*, uint, uint, TraceRegister*, TraceValue*, int>)(lpVtbl[10]))((ID3D11ShaderTrace*)Unsafe.AsPointer(ref this), stepIndex, readRegisterIndex, pRegister, pValue);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult TraceReady(ulong* pTestCount);
[VtblIndex(4)]
void ResetTrace();
[VtblIndex(5)]
HResult GetTraceStats(TraceStats* pTraceStats);
[VtblIndex(6)]
HResult PSSelectStamp(uint stampIndex);
[VtblIndex(7)]
HResult GetInitialRegisterContents(TraceRegister* pRegister, TraceValue* pValue);
[VtblIndex(8)]
HResult GetStep(uint stepIndex, TraceStep* pTraceStep);
[VtblIndex(9)]
HResult GetWrittenRegister(uint stepIndex, uint writtenRegisterIndex, TraceRegister* pRegister, TraceValue* pValue);
[VtblIndex(10)]
HResult GetReadRegister(uint stepIndex, uint readRegisterIndex, TraceRegister* pRegister, TraceValue* pValue);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1fbad429-66ab-41cc-9617-667ac10e4459")]
[NativeTypeName("struct ID3D11ShaderTraceFactory : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11ShaderTraceFactory : INativeGuid
public unsafe partial struct ID3D11ShaderTraceFactory : ID3D11ShaderTraceFactory.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11ShaderTraceFactory
{
@@ -81,5 +81,10 @@ public unsafe partial struct ID3D11ShaderTraceFactory : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11ShaderTraceFactory*, IUnknown*, ShaderTraceDescription*, ID3D11ShaderTrace**, int>)(lpVtbl[3]))((ID3D11ShaderTraceFactory*)Unsafe.AsPointer(ref this), pShader, pTraceDesc, ppShaderTrace);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult CreateShaderTrace(IUnknown* pShader, ShaderTraceDescription* pTraceDesc, ID3D11ShaderTrace** ppShaderTrace);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1ef337e3-58e7-4f83-a692-db221f5ed47e")]
[NativeTypeName("struct ID3D11SwitchToRef : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11SwitchToRef : INativeGuid
public unsafe partial struct ID3D11SwitchToRef : ID3D11SwitchToRef.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11SwitchToRef
{
@@ -89,5 +89,13 @@ public unsafe partial struct ID3D11SwitchToRef : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11SwitchToRef*, Bool32>)(lpVtbl[4]))((ID3D11SwitchToRef*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
Bool32 SetUseRef(Bool32 UseRef);
[VtblIndex(4)]
Bool32 GetUseRef();
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c")]
[NativeTypeName("struct ID3D11Texture1D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
public unsafe partial struct ID3D11Texture1D : INativeGuid
public unsafe partial struct ID3D11Texture1D : ID3D11Texture1D.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Texture1D
{
@@ -137,5 +137,10 @@ public unsafe partial struct ID3D11Texture1D : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Texture1D*, Texture1DDescription*, void>)(lpVtbl[10]))((ID3D11Texture1D*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Resource.Interface
{
[VtblIndex(10)]
void GetDesc(Texture1DDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("6f15aaf2-d208-4e89-9ab4-489535d34f9c")]
[NativeTypeName("struct ID3D11Texture2D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
public unsafe partial struct ID3D11Texture2D : INativeGuid
public unsafe partial struct ID3D11Texture2D : ID3D11Texture2D.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Texture2D
{
@@ -137,5 +137,10 @@ public unsafe partial struct ID3D11Texture2D : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Texture2D*, Texture2DDescription*, void>)(lpVtbl[10]))((ID3D11Texture2D*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Resource.Interface
{
[VtblIndex(10)]
void GetDesc(Texture2DDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("51218251-1e33-4617-9ccb-4d3a4367e7bb")]
[NativeTypeName("struct ID3D11Texture2D1 : ID3D11Texture2D")]
[NativeInheritance("ID3D11Texture2D")]
public unsafe partial struct ID3D11Texture2D1 : INativeGuid
public unsafe partial struct ID3D11Texture2D1 : ID3D11Texture2D1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Texture2D1
{
@@ -145,5 +145,10 @@ public unsafe partial struct ID3D11Texture2D1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Texture2D1*, Texture2DDescription1*, void>)(lpVtbl[11]))((ID3D11Texture2D1*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Texture2D.Interface
{
[VtblIndex(11)]
void GetDesc1(Texture2DDescription1* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("037e866e-f56d-4357-a8af-9dabbe6e250e")]
[NativeTypeName("struct ID3D11Texture3D : ID3D11Resource")]
[NativeInheritance("ID3D11Resource")]
public unsafe partial struct ID3D11Texture3D : INativeGuid
public unsafe partial struct ID3D11Texture3D : ID3D11Texture3D.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Texture3D
{
@@ -137,5 +137,10 @@ public unsafe partial struct ID3D11Texture3D : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Texture3D*, Texture3DDescription*, void>)(lpVtbl[10]))((ID3D11Texture3D*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Resource.Interface
{
[VtblIndex(10)]
void GetDesc(Texture3DDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("0c711683-2853-4846-9bb0-f3e60639e46a")]
[NativeTypeName("struct ID3D11Texture3D1 : ID3D11Texture3D")]
[NativeInheritance("ID3D11Texture3D")]
public unsafe partial struct ID3D11Texture3D1 : INativeGuid
public unsafe partial struct ID3D11Texture3D1 : ID3D11Texture3D1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11Texture3D1
{
@@ -145,5 +145,10 @@ public unsafe partial struct ID3D11Texture3D1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11Texture3D1*, Texture3DDescription1*, void>)(lpVtbl[11]))((ID3D11Texture3D1*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11Texture3D.Interface
{
[VtblIndex(11)]
void GetDesc1(Texture3DDescription1* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1911c771-1587-413e-a7e0-fb26c3de0268")]
[NativeTypeName("struct ID3D11TracingDevice : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11TracingDevice : INativeGuid
public unsafe partial struct ID3D11TracingDevice : ID3D11TracingDevice.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11TracingDevice
{
@@ -89,5 +89,13 @@ public unsafe partial struct ID3D11TracingDevice : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11TracingDevice*, IUnknown*, uint, int>)(lpVtbl[4]))((ID3D11TracingDevice*)Unsafe.AsPointer(ref this), pShader, Options);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult SetShaderTrackingOptionsByType(uint ResourceTypeFlags, uint Options);
[VtblIndex(4)]
HResult SetShaderTrackingOptions(IUnknown* pShader, uint Options);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("28acf509-7f5c-48f6-8611-f316010a6380")]
[NativeTypeName("struct ID3D11UnorderedAccessView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11UnorderedAccessView : INativeGuid
public unsafe partial struct ID3D11UnorderedAccessView : ID3D11UnorderedAccessView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11UnorderedAccessView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11UnorderedAccessView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11UnorderedAccessView*, UnorderedAccessViewDescription*, void>)(lpVtbl[8]))((ID3D11UnorderedAccessView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(UnorderedAccessViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("7b3b6153-a886-4544-ab37-6537c8500403")]
[NativeTypeName("struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView")]
[NativeInheritance("ID3D11UnorderedAccessView")]
public unsafe partial struct ID3D11UnorderedAccessView1 : INativeGuid
public unsafe partial struct ID3D11UnorderedAccessView1 : ID3D11UnorderedAccessView1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11UnorderedAccessView1
{
@@ -129,5 +129,10 @@ public unsafe partial struct ID3D11UnorderedAccessView1 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11UnorderedAccessView1*, UnorderedAccessViewDescription1*, void>)(lpVtbl[9]))((ID3D11UnorderedAccessView1*)Unsafe.AsPointer(ref this), pDesc1);
}
public interface Interface : ID3D11UnorderedAccessView.Interface
{
[VtblIndex(9)]
void GetDesc1(UnorderedAccessViewDescription1* pDesc1);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("3b301d64-d678-4289-8897-22f8928b72f3")]
[NativeTypeName("struct ID3D11VertexShader : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11VertexShader : INativeGuid
public unsafe partial struct ID3D11VertexShader : ID3D11VertexShader.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VertexShader
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3D11VertexShader : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VertexShader*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3D11VertexShader*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("61f21c45-3c0e-4a74-9cea-67100d9ad5e4")]
[NativeTypeName("struct ID3D11VideoContext : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11VideoContext : INativeGuid
public unsafe partial struct ID3D11VideoContext : ID3D11VideoContext.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoContext
{
@@ -569,5 +569,181 @@ public unsafe partial struct ID3D11VideoContext : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoContext*, ID3D11VideoProcessor*, uint, Bool32*, VideoProcessorRotation*, void>)(lpVtbl[64]))((ID3D11VideoContext*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pEnable, pRotation);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult GetDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type, uint* pBufferSize, void** ppBuffer);
[VtblIndex(8)]
HResult ReleaseDecoderBuffer(ID3D11VideoDecoder* pDecoder, VideoDecoderBufferType Type);
[VtblIndex(9)]
HResult DecoderBeginFrame(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey);
[VtblIndex(10)]
HResult DecoderEndFrame(ID3D11VideoDecoder* pDecoder);
[VtblIndex(11)]
HResult SubmitDecoderBuffers(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription* pBufferDesc);
[VtblIndex(12)]
int DecoderExtension(ID3D11VideoDecoder* pDecoder, VideoDecoderExtension* pExtensionData);
[VtblIndex(13)]
void VideoProcessorSetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, RawRect* pRect);
[VtblIndex(14)]
void VideoProcessorSetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32 YCbCr, VideoColor* pColor);
[VtblIndex(15)]
void VideoProcessorSetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace);
[VtblIndex(16)]
void VideoProcessorSetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode AlphaFillMode, uint StreamIndex);
[VtblIndex(17)]
void VideoProcessorSetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable, System.Drawing.Size Size);
[VtblIndex(18)]
void VideoProcessorSetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32 Enable);
[VtblIndex(19)]
int VideoProcessorSetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData);
[VtblIndex(20)]
void VideoProcessorGetOutputTargetRect(ID3D11VideoProcessor* pVideoProcessor, Bool32* Enabled, RawRect* pRect);
[VtblIndex(21)]
void VideoProcessorGetOutputBackgroundColor(ID3D11VideoProcessor* pVideoProcessor, Bool32* pYCbCr, VideoColor* pColor);
[VtblIndex(22)]
void VideoProcessorGetOutputColorSpace(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorColorSpace* pColorSpace);
[VtblIndex(23)]
void VideoProcessorGetOutputAlphaFillMode(ID3D11VideoProcessor* pVideoProcessor, VideoProcessorAlphaFillMode* pAlphaFillMode, uint* pStreamIndex);
[VtblIndex(24)]
void VideoProcessorGetOutputConstriction(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled, System.Drawing.Size* pSize);
[VtblIndex(25)]
void VideoProcessorGetOutputStereoMode(ID3D11VideoProcessor* pVideoProcessor, Bool32* pEnabled);
[VtblIndex(26)]
int VideoProcessorGetOutputExtension(ID3D11VideoProcessor* pVideoProcessor, Guid* pExtensionGuid, uint DataSize, void* pData);
[VtblIndex(27)]
void VideoProcessorSetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat FrameFormat);
[VtblIndex(28)]
void VideoProcessorSetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace);
[VtblIndex(29)]
void VideoProcessorSetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate OutputRate, Bool32 RepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate);
[VtblIndex(30)]
void VideoProcessorSetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect);
[VtblIndex(31)]
void VideoProcessorSetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, RawRect* pRect);
[VtblIndex(32)]
void VideoProcessorSetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Alpha);
[VtblIndex(33)]
void VideoProcessorSetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries);
[VtblIndex(34)]
void VideoProcessorSetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio);
[VtblIndex(35)]
void VideoProcessorSetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, float Lower, float Upper);
[VtblIndex(36)]
void VideoProcessorSetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorStereoFormat Format, Bool32 LeftViewFrame0, Bool32 BaseViewFrame0, VideoProcessorStereoFlipMode FlipMode, int MonoOffset);
[VtblIndex(37)]
void VideoProcessorSetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable);
[VtblIndex(38)]
void VideoProcessorSetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32 Enable, int Level);
[VtblIndex(39)]
int VideoProcessorSetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData);
[VtblIndex(40)]
void VideoProcessorGetStreamFrameFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoFrameFormat* pFrameFormat);
[VtblIndex(41)]
void VideoProcessorGetStreamColorSpace(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorColorSpace* pColorSpace);
[VtblIndex(42)]
void VideoProcessorGetStreamOutputRate(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorOutputRate* pOutputRate, Bool32* pRepeatFrame, Graphics.Dxgi.Common.Rational* pCustomRate);
[VtblIndex(43)]
void VideoProcessorGetStreamSourceRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect);
[VtblIndex(44)]
void VideoProcessorGetStreamDestRect(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, RawRect* pRect);
[VtblIndex(45)]
void VideoProcessorGetStreamAlpha(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pAlpha);
[VtblIndex(46)]
void VideoProcessorGetStreamPalette(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, uint Count, uint* pEntries);
[VtblIndex(47)]
void VideoProcessorGetStreamPixelAspectRatio(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, Graphics.Dxgi.Common.Rational* pSourceAspectRatio, Graphics.Dxgi.Common.Rational* pDestinationAspectRatio);
[VtblIndex(48)]
void VideoProcessorGetStreamLumaKey(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled, float* pLower, float* pUpper);
[VtblIndex(49)]
void VideoProcessorGetStreamStereoFormat(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorStereoFormat* pFormat, Bool32* pLeftViewFrame0, Bool32* pBaseViewFrame0, VideoProcessorStereoFlipMode* pFlipMode, int* MonoOffset);
[VtblIndex(50)]
void VideoProcessorGetStreamAutoProcessingMode(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnabled);
[VtblIndex(51)]
void VideoProcessorGetStreamFilter(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, VideoProcessorFilter Filter, Bool32* pEnabled, int* pLevel);
[VtblIndex(52)]
int VideoProcessorGetStreamExtension(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Guid* pExtensionGuid, uint DataSize, void* pData);
[VtblIndex(53)]
HResult VideoProcessorBlt(ID3D11VideoProcessor* pVideoProcessor, ID3D11VideoProcessorOutputView* pView, uint OutputFrame, uint StreamCount, VideoProcessorStream* pStreams);
[VtblIndex(54)]
HResult NegotiateCryptoSessionKeyExchange(ID3D11CryptoSession* pCryptoSession, uint DataSize, void* pData);
[VtblIndex(55)]
void EncryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, uint IVSize, void* pIV);
[VtblIndex(56)]
void DecryptionBlt(ID3D11CryptoSession* pCryptoSession, ID3D11Texture2D* pSrcSurface, ID3D11Texture2D* pDstSurface, EncryptedBlockInfo* pEncryptedBlockInfo, uint ContentKeySize, void* pContentKey, uint IVSize, void* pIV);
[VtblIndex(57)]
void StartSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession, uint RandomNumberSize, void* pRandomNumber);
[VtblIndex(58)]
void FinishSessionKeyRefresh(ID3D11CryptoSession* pCryptoSession);
[VtblIndex(59)]
HResult GetEncryptionBltKey(ID3D11CryptoSession* pCryptoSession, uint KeySize, void* pReadbackKey);
[VtblIndex(60)]
HResult NegotiateAuthenticatedChannelKeyExchange(ID3D11AuthenticatedChannel* pChannel, uint DataSize, void* pData);
[VtblIndex(61)]
HResult QueryAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, uint OutputSize, void* pOutput);
[VtblIndex(62)]
HResult ConfigureAuthenticatedChannel(ID3D11AuthenticatedChannel* pChannel, uint InputSize, void* pInput, AuthenticatedConfigureOutput* pOutput);
[VtblIndex(63)]
void VideoProcessorSetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, VideoProcessorRotation Rotation);
[VtblIndex(64)]
void VideoProcessorGetStreamRotation(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, VideoProcessorRotation* pRotation);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a7f026da-a5f8-4487-a564-15e34357651e")]
[NativeTypeName("struct ID3D11VideoContext1 : ID3D11VideoContext")]
[NativeInheritance("ID3D11VideoContext")]
public unsafe partial struct ID3D11VideoContext1 : INativeGuid
public unsafe partial struct ID3D11VideoContext1 : ID3D11VideoContext1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoContext1
{
@@ -681,5 +681,49 @@ public unsafe partial struct ID3D11VideoContext1 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoContext1*, ID3D11VideoProcessor*, uint, uint, Graphics.Dxgi.Common.Format, uint, VideoProcessorStreamBehaviorHint*, uint*, int>)(lpVtbl[78]))((ID3D11VideoContext1*)Unsafe.AsPointer(ref this), pVideoProcessor, OutputWidth, OutputHeight, OutputFormat, StreamCount, pStreams, pBehaviorHints);
}
public interface Interface : ID3D11VideoContext.Interface
{
[VtblIndex(65)]
HResult SubmitDecoderBuffers1(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription1* pBufferDesc);
[VtblIndex(66)]
HResult GetDataForNewHardwareKey(ID3D11CryptoSession* pCryptoSession, uint PrivateInputSize, void* pPrivatInputData, ulong* pPrivateOutputData);
[VtblIndex(67)]
HResult CheckCryptoSessionStatus(ID3D11CryptoSession* pCryptoSession, CryptoSessionStatus* pStatus);
[VtblIndex(68)]
HResult DecoderEnableDownsampling(ID3D11VideoDecoder* pDecoder, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoSampleDescription* pOutputDesc, uint ReferenceFrameCount);
[VtblIndex(69)]
HResult DecoderUpdateDownsampling(ID3D11VideoDecoder* pDecoder, VideoSampleDescription* pOutputDesc);
[VtblIndex(70)]
void VideoProcessorSetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType ColorSpace);
[VtblIndex(71)]
void VideoProcessorSetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32 ShaderUsage);
[VtblIndex(72)]
void VideoProcessorGetOutputColorSpace1(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace);
[VtblIndex(73)]
void VideoProcessorGetOutputShaderUsage(ID3D11VideoProcessor* pVideoProcessor, Bool32* pShaderUsage);
[VtblIndex(74)]
void VideoProcessorSetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType ColorSpace);
[VtblIndex(75)]
void VideoProcessorSetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32 Enable, Bool32 FlipHorizontal, Bool32 FlipVertical);
[VtblIndex(76)]
void VideoProcessorGetStreamColorSpace1(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.Common.ColorSpaceType* pColorSpace);
[VtblIndex(77)]
void VideoProcessorGetStreamMirror(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Bool32* pEnable, Bool32* pFlipHorizontal, Bool32* pFlipVertical);
[VtblIndex(78)]
HResult VideoProcessorGetBehaviorHints(ID3D11VideoProcessor* pVideoProcessor, uint OutputWidth, uint OutputHeight, Graphics.Dxgi.Common.Format OutputFormat, uint StreamCount, VideoProcessorStreamBehaviorHint* pStreams, uint* pBehaviorHints);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("c4e7374c-6243-4d1b-ae87-52b4f740e261")]
[NativeTypeName("struct ID3D11VideoContext2 : ID3D11VideoContext1")]
[NativeInheritance("ID3D11VideoContext1")]
public unsafe partial struct ID3D11VideoContext2 : INativeGuid
public unsafe partial struct ID3D11VideoContext2 : ID3D11VideoContext2.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoContext2
{
@@ -713,5 +713,19 @@ public unsafe partial struct ID3D11VideoContext2 : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoContext2*, ID3D11VideoProcessor*, uint, Graphics.Dxgi.HDRMetadataType*, uint, void*, void>)(lpVtbl[82]))((ID3D11VideoContext2*)Unsafe.AsPointer(ref this), pVideoProcessor, StreamIndex, pType, Size, pMetaData);
}
public interface Interface : ID3D11VideoContext1.Interface
{
[VtblIndex(79)]
void VideoProcessorSetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HDRMetadataType Type, uint Size, void* pHDRMetaData);
[VtblIndex(80)]
void VideoProcessorGetOutputHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, Graphics.Dxgi.HDRMetadataType* pType, uint Size, void* pMetaData);
[VtblIndex(81)]
void VideoProcessorSetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HDRMetadataType Type, uint Size, void* pHDRMetaData);
[VtblIndex(82)]
void VideoProcessorGetStreamHDRMetaData(ID3D11VideoProcessor* pVideoProcessor, uint StreamIndex, Graphics.Dxgi.HDRMetadataType* pType, uint Size, void* pMetaData);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a9e2faa0-cb39-418f-a0b7-d8aad4de672e")]
[NativeTypeName("struct ID3D11VideoContext3 : ID3D11VideoContext2")]
[NativeInheritance("ID3D11VideoContext2")]
public unsafe partial struct ID3D11VideoContext3 : INativeGuid
public unsafe partial struct ID3D11VideoContext3 : ID3D11VideoContext3.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoContext3
{
@@ -729,5 +729,13 @@ public unsafe partial struct ID3D11VideoContext3 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoContext3*, ID3D11VideoDecoder*, uint, VideoDecoderBufferDescription2*, int>)(lpVtbl[84]))((ID3D11VideoContext3*)Unsafe.AsPointer(ref this), pDecoder, NumBuffers, pBufferDesc);
}
public interface Interface : ID3D11VideoContext2.Interface
{
[VtblIndex(83)]
HResult DecoderBeginFrame1(ID3D11VideoDecoder* pDecoder, ID3D11VideoDecoderOutputView* pView, uint ContentKeySize, void* pContentKey, uint NumComponentHistograms, uint* pHistogramOffsets, ID3D11Buffer** ppHistogramBuffers);
[VtblIndex(84)]
HResult SubmitDecoderBuffers2(ID3D11VideoDecoder* pDecoder, uint NumBuffers, VideoDecoderBufferDescription2* pBufferDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("3c9c5b51-995d-48d1-9b8d-fa5caeded65c")]
[NativeTypeName("struct ID3D11VideoDecoder : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11VideoDecoder : INativeGuid
public unsafe partial struct ID3D11VideoDecoder : ID3D11VideoDecoder.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoDecoder
{
@@ -121,5 +121,13 @@ public unsafe partial struct ID3D11VideoDecoder : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoDecoder*, Handle*, int>)(lpVtbl[8]))((ID3D11VideoDecoder*)Unsafe.AsPointer(ref this), pDriverHandle);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult GetCreationParameters(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig);
[VtblIndex(8)]
HResult GetDriverHandle(Handle* pDriverHandle);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("c2931aea-2a85-4f20-860f-fba1fd256e18")]
[NativeTypeName("struct ID3D11VideoDecoderOutputView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11VideoDecoderOutputView : INativeGuid
public unsafe partial struct ID3D11VideoDecoderOutputView : ID3D11VideoDecoderOutputView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoDecoderOutputView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11VideoDecoderOutputView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoDecoderOutputView*, VideoDecoderOutputViewDescription*, void>)(lpVtbl[8]))((ID3D11VideoDecoderOutputView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(VideoDecoderOutputViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("10ec4d5b-975a-4689-b9e4-d0aac30fe333")]
[NativeTypeName("struct ID3D11VideoDevice : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3D11VideoDevice : INativeGuid
public unsafe partial struct ID3D11VideoDevice : ID3D11VideoDevice.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoDevice
{
@@ -209,5 +209,58 @@ public unsafe partial struct ID3D11VideoDevice : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoDevice*, Guid*, IUnknown*, int>)(lpVtbl[19]))((ID3D11VideoDevice*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
HResult CreateVideoDecoder(VideoDecoderDescription* pVideoDesc, VideoDecoderConfig* pConfig, ID3D11VideoDecoder** ppDecoder);
[VtblIndex(4)]
HResult CreateVideoProcessor(ID3D11VideoProcessorEnumerator* pEnum, uint RateConversionIndex, ID3D11VideoProcessor** ppVideoProcessor);
[VtblIndex(5)]
HResult CreateAuthenticatedChannel(AuthenticatedChannelType ChannelType, ID3D11AuthenticatedChannel** ppAuthenticatedChannel);
[VtblIndex(6)]
HResult CreateCryptoSession(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, ID3D11CryptoSession** ppCryptoSession);
[VtblIndex(7)]
HResult CreateVideoDecoderOutputView(ID3D11Resource* pResource, VideoDecoderOutputViewDescription* pDesc, ID3D11VideoDecoderOutputView** ppVDOVView);
[VtblIndex(8)]
HResult CreateVideoProcessorInputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorInputViewDescription* pDesc, ID3D11VideoProcessorInputView** ppVPIView);
[VtblIndex(9)]
HResult CreateVideoProcessorOutputView(ID3D11Resource* pResource, ID3D11VideoProcessorEnumerator* pEnum, VideoProcessorOutputViewDescription* pDesc, ID3D11VideoProcessorOutputView** ppVPOView);
[VtblIndex(10)]
HResult CreateVideoProcessorEnumerator(VideoProcessorContentDescription* pDesc, ID3D11VideoProcessorEnumerator** ppEnum);
[VtblIndex(11)]
uint GetVideoDecoderProfileCount();
[VtblIndex(12)]
HResult GetVideoDecoderProfile(uint Index, Guid* pDecoderProfile);
[VtblIndex(13)]
HResult CheckVideoDecoderFormat(Guid* pDecoderProfile, Graphics.Dxgi.Common.Format Format, Bool32* pSupported);
[VtblIndex(14)]
HResult GetVideoDecoderConfigCount(VideoDecoderDescription* pDesc, uint* pCount);
[VtblIndex(15)]
HResult GetVideoDecoderConfig(VideoDecoderDescription* pDesc, uint Index, VideoDecoderConfig* pConfig);
[VtblIndex(16)]
HResult GetContentProtectionCaps(Guid* pCryptoType, Guid* pDecoderProfile, VideoContentProtectionCaps* pCaps);
[VtblIndex(17)]
HResult CheckCryptoKeyExchange(Guid* pCryptoType, Guid* pDecoderProfile, uint Index, Guid* pKeyExchangeType);
[VtblIndex(18)]
HResult SetPrivateData(Guid* guid, uint DataSize, void* pData);
[VtblIndex(19)]
HResult SetPrivateDataInterface(Guid* guid, IUnknown* pData);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("29da1d51-1321-4454-804b-f5fc9f861f0f")]
[NativeTypeName("struct ID3D11VideoDevice1 : ID3D11VideoDevice")]
[NativeInheritance("ID3D11VideoDevice")]
public unsafe partial struct ID3D11VideoDevice1 : INativeGuid
public unsafe partial struct ID3D11VideoDevice1 : ID3D11VideoDevice1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoDevice1
{
@@ -241,5 +241,19 @@ public unsafe partial struct ID3D11VideoDevice1 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoDevice1*, VideoDecoderDescription*, Graphics.Dxgi.Common.ColorSpaceType, VideoDecoderConfig*, Graphics.Dxgi.Common.Rational*, VideoSampleDescription*, int>)(lpVtbl[23]))((ID3D11VideoDevice1*)Unsafe.AsPointer(ref this), pInputDesc, InputColorSpace, pInputConfig, pFrameRate, pRecommendedOutputDesc);
}
public interface Interface : ID3D11VideoDevice.Interface
{
[VtblIndex(20)]
HResult GetCryptoSessionPrivateDataSize(Guid* pCryptoType, Guid* pDecoderProfile, Guid* pKeyExchangeType, uint* pPrivateInputSize, uint* pPrivateOutputSize);
[VtblIndex(21)]
HResult GetVideoDecoderCaps(Guid* pDecoderProfile, uint SampleWidth, uint SampleHeight, Graphics.Dxgi.Common.Rational* pFrameRate, uint BitRate, Guid* pCryptoType, uint* pDecoderCaps);
[VtblIndex(22)]
HResult CheckVideoDecoderDownsampling(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pOutputDesc, Bool32* pSupported, Bool32* pRealTimeHint);
[VtblIndex(23)]
HResult RecommendVideoDecoderDownsampleParameters(VideoDecoderDescription* pInputDesc, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, VideoDecoderConfig* pInputConfig, Graphics.Dxgi.Common.Rational* pFrameRate, VideoSampleDescription* pRecommendedOutputDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("59c0cb01-35f0-4a70-8f67-87905c906a53")]
[NativeTypeName("struct ID3D11VideoDevice2 : ID3D11VideoDevice1")]
[NativeInheritance("ID3D11VideoDevice1")]
public unsafe partial struct ID3D11VideoDevice2 : INativeGuid
public unsafe partial struct ID3D11VideoDevice2 : ID3D11VideoDevice2.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoDevice2
{
@@ -257,5 +257,13 @@ public unsafe partial struct ID3D11VideoDevice2 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoDevice2*, ID3D11CryptoSession*, CryptoSessionKeyExchangeFlags, uint, void*, int>)(lpVtbl[25]))((ID3D11VideoDevice2*)Unsafe.AsPointer(ref this), pCryptoSession, flags, DataSize, pData);
}
public interface Interface : ID3D11VideoDevice1.Interface
{
[VtblIndex(24)]
HResult CheckFeatureSupport(FeatureVideo Feature, void* pFeatureSupportData, int FeatureSupportDataSize);
[VtblIndex(25)]
HResult NegotiateCryptoSessionKeyExchangeMT(ID3D11CryptoSession* pCryptoSession, CryptoSessionKeyExchangeFlags flags, uint DataSize, void* pData);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("1d7b0652-185f-41c6-85ce-0c5be3d4ae6c")]
[NativeTypeName("struct ID3D11VideoProcessor : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11VideoProcessor : INativeGuid
public unsafe partial struct ID3D11VideoProcessor : ID3D11VideoProcessor.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoProcessor
{
@@ -121,5 +121,13 @@ public unsafe partial struct ID3D11VideoProcessor : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoProcessor*, VideoProcessorRateConversionCaps*, void>)(lpVtbl[8]))((ID3D11VideoProcessor*)Unsafe.AsPointer(ref this), pCaps);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetContentDesc(VideoProcessorContentDescription* pDesc);
[VtblIndex(8)]
void GetRateConversionCaps(VideoProcessorRateConversionCaps* pCaps);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("31627037-53ab-4200-9061-05faa9ab45f9")]
[NativeTypeName("struct ID3D11VideoProcessorEnumerator : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11VideoProcessorEnumerator : INativeGuid
public unsafe partial struct ID3D11VideoProcessorEnumerator : ID3D11VideoProcessorEnumerator.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator
{
@@ -153,5 +153,25 @@ public unsafe partial struct ID3D11VideoProcessorEnumerator : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoProcessorEnumerator*, VideoProcessorFilter, VideoProcessorFilterRange*, int>)(lpVtbl[12]))((ID3D11VideoProcessorEnumerator*)Unsafe.AsPointer(ref this), Filter, pRange);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
HResult GetVideoProcessorContentDesc(VideoProcessorContentDescription* pContentDesc);
[VtblIndex(8)]
HResult CheckVideoProcessorFormat(Graphics.Dxgi.Common.Format Format, uint* pFlags);
[VtblIndex(9)]
HResult GetVideoProcessorCaps(VideoProcessorCaps* pCaps);
[VtblIndex(10)]
HResult GetVideoProcessorRateConversionCaps(uint TypeIndex, VideoProcessorRateConversionCaps* pCaps);
[VtblIndex(11)]
HResult GetVideoProcessorCustomRate(uint TypeIndex, uint CustomRateIndex, VideoProcessorCustomRate* pRate);
[VtblIndex(12)]
HResult GetVideoProcessorFilterRange(VideoProcessorFilter Filter, VideoProcessorFilterRange* pRange);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("465217f2-5568-43cf-b5b9-f61d54531ca1")]
[NativeTypeName("struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator")]
[NativeInheritance("ID3D11VideoProcessorEnumerator")]
public unsafe partial struct ID3D11VideoProcessorEnumerator1 : INativeGuid
public unsafe partial struct ID3D11VideoProcessorEnumerator1 : ID3D11VideoProcessorEnumerator1.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoProcessorEnumerator1
{
@@ -161,5 +161,10 @@ public unsafe partial struct ID3D11VideoProcessorEnumerator1 : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3D11VideoProcessorEnumerator1*, Graphics.Dxgi.Common.Format, Graphics.Dxgi.Common.ColorSpaceType, Graphics.Dxgi.Common.Format, Graphics.Dxgi.Common.ColorSpaceType, Bool32*, int>)(lpVtbl[13]))((ID3D11VideoProcessorEnumerator1*)Unsafe.AsPointer(ref this), InputFormat, InputColorSpace, OutputFormat, OutputColorSpace, pSupported);
}
public interface Interface : ID3D11VideoProcessorEnumerator.Interface
{
[VtblIndex(13)]
HResult CheckVideoProcessorFormatConversion(Graphics.Dxgi.Common.Format InputFormat, Graphics.Dxgi.Common.ColorSpaceType InputColorSpace, Graphics.Dxgi.Common.Format OutputFormat, Graphics.Dxgi.Common.ColorSpaceType OutputColorSpace, Bool32* pSupported);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("11ec5a5f-51dc-4945-ab34-6e8c21300ea5")]
[NativeTypeName("struct ID3D11VideoProcessorInputView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11VideoProcessorInputView : INativeGuid
public unsafe partial struct ID3D11VideoProcessorInputView : ID3D11VideoProcessorInputView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoProcessorInputView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11VideoProcessorInputView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoProcessorInputView*, VideoProcessorInputViewDescription*, void>)(lpVtbl[8]))((ID3D11VideoProcessorInputView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(VideoProcessorInputViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("a048285e-25a9-4527-bd93-d68b68c44254")]
[NativeTypeName("struct ID3D11VideoProcessorOutputView : ID3D11View")]
[NativeInheritance("ID3D11View")]
public unsafe partial struct ID3D11VideoProcessorOutputView : INativeGuid
public unsafe partial struct ID3D11VideoProcessorOutputView : ID3D11VideoProcessorOutputView.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11VideoProcessorOutputView
{
@@ -121,5 +121,10 @@ public unsafe partial struct ID3D11VideoProcessorOutputView : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11VideoProcessorOutputView*, VideoProcessorOutputViewDescription*, void>)(lpVtbl[8]))((ID3D11VideoProcessorOutputView*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : ID3D11View.Interface
{
[VtblIndex(8)]
void GetDesc(VideoProcessorOutputViewDescription* pDesc);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("839d1216-bb2e-412b-b7f4-a9dbebe08ed1")]
[NativeTypeName("struct ID3D11View : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3D11View : INativeGuid
public unsafe partial struct ID3D11View : ID3D11View.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3D11View
{
@@ -113,5 +113,10 @@ public unsafe partial struct ID3D11View : INativeGuid
{
((delegate* unmanaged[Stdcall]<ID3D11View*, ID3D11Resource**, void>)(lpVtbl[7]))((ID3D11View*)Unsafe.AsPointer(ref this), ppResource);
}
public interface Interface : ID3D11DeviceChild.Interface
{
[VtblIndex(7)]
void GetResource(ID3D11Resource** ppResource);
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("5c1e0d8a-7c23-48f9-8c59-a92958ceff11")]
[NativeTypeName("struct ID3DDeviceContextState : ID3D11DeviceChild")]
[NativeInheritance("ID3D11DeviceChild")]
public unsafe partial struct ID3DDeviceContextState : INativeGuid
public unsafe partial struct ID3DDeviceContextState : ID3DDeviceContextState.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3DDeviceContextState
{
@@ -105,5 +105,8 @@ public unsafe partial struct ID3DDeviceContextState : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3DDeviceContextState*, Guid*, IUnknown*, int>)(lpVtbl[6]))((ID3DDeviceContextState*)Unsafe.AsPointer(ref this), guid, pData);
}
public interface Interface : ID3D11DeviceChild.Interface
{
}
}

View File

@@ -14,7 +14,7 @@ namespace Win32.Graphics.Direct3D11;
[Guid("b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab")]
[NativeTypeName("struct ID3DUserDefinedAnnotation : IUnknown")]
[NativeInheritance("IUnknown")]
public unsafe partial struct ID3DUserDefinedAnnotation : INativeGuid
public unsafe partial struct ID3DUserDefinedAnnotation : ID3DUserDefinedAnnotation.Interface, INativeGuid
{
public static ref readonly Guid IID_ID3DUserDefinedAnnotation
{
@@ -105,5 +105,19 @@ public unsafe partial struct ID3DUserDefinedAnnotation : INativeGuid
{
return ((delegate* unmanaged[Stdcall]<ID3DUserDefinedAnnotation*, Bool32>)(lpVtbl[6]))((ID3DUserDefinedAnnotation*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]
int BeginEvent(ushort* Name);
[VtblIndex(4)]
int EndEvent();
[VtblIndex(5)]
void SetMarker(ushort* Name);
[VtblIndex(6)]
Bool32 GetStatus();
}
}

View File

@@ -1,20 +1,26 @@
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
using static Win32.Apis;
namespace Win32.Graphics.Direct3D11;
public unsafe partial struct ID3D11Device
public static unsafe class ID3D11DeviceExtension
{
public ComPtr<ID3D11Buffer> CreateBuffer(BufferDescription* description, SubresourceData* initialData = default)
public static ComPtr<ID3D11Buffer> CheckFeatureSupport<TD3D11Device>(ref this ID3D11Device self, BufferDescription* description, SubresourceData* initialData = default)
where TD3D11Device : unmanaged, ID3D11Device.Interface
{
using ComPtr<ID3D11Buffer> buffer = default;
CreateBuffer(description, initialData, buffer.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(self.CreateBuffer(description, initialData, buffer.GetAddressOf()));
return buffer.Move();
}
public ComPtr<ID3D11Buffer> CreateBuffer<T>(
public static ComPtr<ID3D11Buffer> CreateBuffer<TD3D11Device, T>(
ref this ID3D11Device self,
in T data,
BufferDescription description) where T : unmanaged
BufferDescription description)
where TD3D11Device : unmanaged, ID3D11Device.Interface
where T : unmanaged
{
if (description.ByteWidth == 0)
description.ByteWidth = (uint)sizeof(T);
@@ -27,11 +33,24 @@ public unsafe partial struct ID3D11Device
};
using ComPtr<ID3D11Buffer> buffer = default;
CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(self.CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()));
return buffer.Move();
}
}
public static ComPtr<ID3D11DeviceContext> CreateDeferredContext<TD3D11Device>(ref this ID3D11Device self)
where TD3D11Device : unmanaged, ID3D11Device.Interface
{
using ComPtr<ID3D11DeviceContext> deferredContext = default;
ThrowIfFailed(self.CreateDeferredContext(0u, deferredContext.GetAddressOf()));
return deferredContext.Move();
}
}
public unsafe partial struct ID3D11Device
{
public ComPtr<ID3D11Buffer> CreateBuffer<T>(ReadOnlySpan<T> data, BufferDescription description) where T : unmanaged
{
if (description.ByteWidth == 0)
@@ -45,7 +64,7 @@ public unsafe partial struct ID3D11Device
};
using ComPtr<ID3D11Buffer> buffer = default;
CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()));
return buffer.Move();
}
}
@@ -89,7 +108,7 @@ public unsafe partial struct ID3D11Device
};
using ComPtr<ID3D11Buffer> buffer = default;
CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateBuffer(&description, &subresourceData, buffer.GetAddressOf()));
return buffer.Move();
}
}
@@ -99,7 +118,7 @@ public unsafe partial struct ID3D11Device
RenderTargetViewDescription* description)
{
using ComPtr<ID3D11RenderTargetView> view = default;
CreateRenderTargetView(resource, description, view.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateRenderTargetView(resource, description, view.GetAddressOf()));
return view.Move();
}
@@ -109,7 +128,7 @@ public unsafe partial struct ID3D11Device
DepthStencilViewDescription* description)
{
using ComPtr<ID3D11DepthStencilView> view = default;
CreateDepthStencilView(resource, description, view.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateDepthStencilView(resource, description, view.GetAddressOf()));
return view.Move();
}
@@ -119,7 +138,7 @@ public unsafe partial struct ID3D11Device
ShaderResourceViewDescription* description)
{
using ComPtr<ID3D11ShaderResourceView> view = default;
CreateShaderResourceView(resource, description, view.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateShaderResourceView(resource, description, view.GetAddressOf()));
return view.Move();
}
@@ -129,7 +148,7 @@ public unsafe partial struct ID3D11Device
UnorderedAccessViewDescription* description)
{
using ComPtr<ID3D11UnorderedAccessView> view = default;
CreateUnorderedAccessView(resource, description, view.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateUnorderedAccessView(resource, description, view.GetAddressOf()));
return view.Move();
}
@@ -137,7 +156,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11BlendState> CreateBlendState(BlendDescription* description)
{
using ComPtr<ID3D11BlendState> state = default;
CreateBlendState(description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateBlendState(description, state.GetAddressOf()));
return state.Move();
}
@@ -145,7 +164,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11BlendState> CreateBlendState(BlendDescription description)
{
using ComPtr<ID3D11BlendState> state = default;
CreateBlendState(&description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateBlendState(&description, state.GetAddressOf()));
return state.Move();
}
@@ -153,7 +172,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11DepthStencilState> CreateDepthStencilState(DepthStencilDescription* description)
{
using ComPtr<ID3D11DepthStencilState> state = default;
CreateDepthStencilState(description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateDepthStencilState(description, state.GetAddressOf()));
return state.Move();
}
@@ -161,7 +180,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11DepthStencilState> CreateDepthStencilState(DepthStencilDescription description)
{
using ComPtr<ID3D11DepthStencilState> state = default;
CreateDepthStencilState(&description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateDepthStencilState(&description, state.GetAddressOf()));
return state.Move();
}
@@ -169,7 +188,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11RasterizerState> CreateRasterizerState(RasterizerDescription* description)
{
using ComPtr<ID3D11RasterizerState> state = default;
CreateRasterizerState(description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateRasterizerState(description, state.GetAddressOf()));
return state.Move();
}
@@ -177,7 +196,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11RasterizerState> CreateRasterizerState(RasterizerDescription description)
{
using ComPtr<ID3D11RasterizerState> state = default;
CreateRasterizerState(&description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateRasterizerState(&description, state.GetAddressOf()));
return state.Move();
}
@@ -185,7 +204,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11SamplerState> CreateSamplerState(SamplerDescription* description)
{
using ComPtr<ID3D11SamplerState> state = default;
CreateSamplerState(description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateSamplerState(description, state.GetAddressOf()));
return state.Move();
}
@@ -193,7 +212,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11SamplerState> CreateSamplerState(SamplerDescription description)
{
using ComPtr<ID3D11SamplerState> state = default;
CreateSamplerState(&description, state.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateSamplerState(&description, state.GetAddressOf()));
return state.Move();
}
@@ -201,7 +220,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture1D> CreateTexture1D(Texture1DDescription* description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture1D> texture = default;
CreateTexture1D(description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture1D(description, initialData, texture.GetAddressOf()));
return texture.Move();
}
@@ -209,7 +228,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture1D> CreateTexture1D(Texture1DDescription description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture1D> texture = default;
CreateTexture1D(&description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture1D(&description, initialData, texture.GetAddressOf()));
return texture.Move();
}
@@ -217,7 +236,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture2D> CreateTexture2D(Texture2DDescription* description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture2D> texture = default;
CreateTexture2D(description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture2D(description, initialData, texture.GetAddressOf()));
return texture.Move();
}
@@ -225,7 +244,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture2D> CreateTexture2D(Texture2DDescription description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture2D> texture = default;
CreateTexture2D(&description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture2D(&description, initialData, texture.GetAddressOf()));
return texture.Move();
}
@@ -233,7 +252,7 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture3D> CreateTexture3D(Texture3DDescription* description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture3D> texture = default;
CreateTexture3D(description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture3D(description, initialData, texture.GetAddressOf()));
return texture.Move();
}
@@ -241,15 +260,8 @@ public unsafe partial struct ID3D11Device
public ComPtr<ID3D11Texture3D> CreateTexture3D(Texture3DDescription description, SubresourceData* initialData = default)
{
using ComPtr<ID3D11Texture3D> texture = default;
CreateTexture3D(&description, initialData, texture.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(CreateTexture3D(&description, initialData, texture.GetAddressOf()));
return texture.Move();
}
public ComPtr<ID3D11DeviceContext> CreateDeferredContext()
{
using ComPtr<ID3D11DeviceContext> deferredContext = default;
CreateDeferredContext(0u, deferredContext.GetAddressOf()).ThrowIfFailed();
return deferredContext.Move();
}
}

View File

@@ -5,6 +5,40 @@ using static Win32.StringUtilities;
namespace Win32.Graphics.Direct3D11;
public static unsafe class ID3D11DeviceChildExtensions
{
public static string? GetDebugName<TD3D11DeviceChild>(ref this TD3D11DeviceChild self)
where TD3D11DeviceChild : unmanaged, ID3D11DeviceChild.Interface
{
sbyte* pname = stackalloc sbyte[1024];
uint size = 1024 - 1;
if (self.GetPrivateData(ID3D11DeviceChild.D3DDebugObjectNameGuid, &size, pname).Failure)
{
return string.Empty;
}
pname[size] = 0;
return GetString(pname);
}
public static void SetDebugName<TD3D11DeviceChild>(ref this TD3D11DeviceChild self, string? value)
where TD3D11DeviceChild : unmanaged, ID3D11DeviceChild.Interface
{
if (string.IsNullOrEmpty(value))
{
_ = self.SetPrivateData(ID3D11DeviceChild.D3DDebugObjectNameGuid, 0, null);
}
else
{
fixed (sbyte* valuePtr = value.GetUtf8Span())
{
_ = self.SetPrivateData(ID3D11DeviceChild.D3DDebugObjectNameGuid, (uint)value.Length, valuePtr);
}
}
}
}
public unsafe partial struct ID3D11DeviceChild
{
public static ref readonly Guid WKPDID_D3DDebugObjectName
@@ -32,37 +66,4 @@ public unsafe partial struct ID3D11DeviceChild
}
public static Guid* D3DDebugObjectNameGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in WKPDID_D3DDebugObjectName));
/// <summary>
/// Gets or sets the debug-name for this object.
/// </summary>
public string? DebugName
{
get
{
sbyte* pname = stackalloc sbyte[1024];
uint size = 1024 - 1;
if (GetPrivateData(D3DDebugObjectNameGuid, &size, pname).Failure)
{
return string.Empty;
}
pname[size] = 0;
return GetString(pname);
}
set
{
if (string.IsNullOrEmpty(value))
{
SetPrivateData(D3DDebugObjectNameGuid, 0, null);
}
else
{
fixed (sbyte* valuePtr = value.GetUtf8Span())
{
SetPrivateData(D3DDebugObjectNameGuid, (uint)value.Length, valuePtr);
}
}
}
}
}

View File

@@ -1,6 +1,7 @@
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
using static Win32.Apis;
using static Win32.Graphics.Direct3D11.Apis;
namespace Win32.Graphics.Direct3D11;
@@ -141,7 +142,7 @@ public unsafe partial struct ID3D11DeviceContext
{
uint subresource = resource->CalculateSubResourceIndex(mipSlice, arraySlice, out uint mipSize);
MappedSubresource mappedSubresource;
Map((ID3D11Resource*)resource, subresource, mode, flags, &mappedSubresource).ThrowIfFailed();
ThrowIfFailed(Map((ID3D11Resource*)resource, subresource, mode, flags, &mappedSubresource));
Span<byte> source = new(mappedSubresource.pData, (int)(mipSize * mappedSubresource.RowPitch));
return global::System.Runtime.InteropServices.MemoryMarshal.Cast<byte, T>(source);
@@ -168,7 +169,7 @@ public unsafe partial struct ID3D11DeviceContext
public ComPtr<ID3D11CommandList> FinishCommandList(bool RestoreDeferredContextState = false)
{
using ComPtr<ID3D11CommandList> commandList = default;
FinishCommandList(RestoreDeferredContextState, commandList.GetAddressOf()).ThrowIfFailed();
ThrowIfFailed(FinishCommandList(RestoreDeferredContextState, commandList.GetAddressOf()));
return commandList.Move();
}